@lde/task-runner
v0.2.10
Published
Interfaces for running shell commands as tasks. Implementations run commands:
Downloads
1,388
Readme
Task Runner
Interfaces for running shell commands as tasks. Implementations run commands:
- in Docker containers — isolated environment
- natively on the host — direct execution
TaskRunner Interface
interface TaskRunner<Task> {
run(command: string): Promise<Task>;
wait(task: Task): Promise<string>;
stop(task: Task): Promise<string | null>;
}run(command)— Start a shell command, returns a task handlewait(task)— Wait for completion, returns stdout/stderr outputstop(task)— Stop the task, returns output collected so far
