Skip to content

RunTaskInput

Defined in: cli/astromech/src/tasks/run/run.type.ts:37

What runTask needs for one task: the task, where to run it, and the injected dependencies.

  • RunDeps

optional affected?: boolean

Defined in: cli/astromech/src/tasks/run/run.type.ts:51

turbo --affected: only the packages changed since base, plus their dependents. Ignored without a turbo.json.


optional base?: string

Defined in: cli/astromech/src/tasks/run/run.type.ts:53

Git ref affected compares against; falls back to TURBO_SCM_BASE.


cwd: string

Defined in: cli/astromech/src/tasks/run/run.type.ts:41

Directory to run in.


optional dryRun?: boolean

Defined in: cli/astromech/src/tasks/run/run.type.ts:45

Print the resolved command without running it.


optional env?: Record<string, string | undefined>

Defined in: cli/astromech/src/tasks/run/run.type.ts:55

Environment affected reads (GITHUB_EVENT_NAME, GITHUB_REF_NAME, TURBO_SCM_BASE). Defaults to empty.


exec: ExecFn

Defined in: cli/astromech/src/tasks/run/run.type.ts:28

RunDeps.exec


fileExists: (path) => boolean

Defined in: cli/astromech/src/tasks/run/run.type.ts:30

string

boolean

RunDeps.fileExists


optional filter?: string

Defined in: cli/astromech/src/tasks/run/run.type.ts:49

turbo --filter=<pkg> passthrough (monorepo). Ignored when the repo has no turbo.json.


listDir: (path) => string[]

Defined in: cli/astromech/src/tasks/run/run.type.ts:31

string

string[]

RunDeps.listDir


logger: RunLogger

Defined in: cli/astromech/src/tasks/run/run.type.ts:27

RunDeps.logger


lookPath: (cwd, bin) => string | null

Defined in: cli/astromech/src/tasks/run/run.type.ts:33

node_modules/.bin/<bin> or a PATH entry; null when not runnable.

string

string

string | null

RunDeps.lookPath


optional passthrough?: string[]

Defined in: cli/astromech/src/tasks/run/run.type.ts:43

Args after -- on the command line, forwarded to the tool / turbo / script.


print: (line) => void

Defined in: cli/astromech/src/tasks/run/run.type.ts:26

string

void

RunDeps.print


readFile: (path) => string

Defined in: cli/astromech/src/tasks/run/run.type.ts:29

string

string

RunDeps.readFile


optional required?: boolean

Defined in: cli/astromech/src/tasks/run/run.type.ts:47

Turn “no such task for this repo” (normally exit 0) into a failure.


task: string

Defined in: cli/astromech/src/tasks/run/run.type.ts:39

Registry task name, e.g. "test".