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.
Extends
Section titled “Extends”RunDeps
Properties
Section titled “Properties”affected?
Section titled “affected?”
optionalaffected?: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.
optionalbase?: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.
dryRun?
Section titled “dryRun?”
optionaldryRun?:boolean
Defined in: cli/astromech/src/tasks/run/run.type.ts:45
Print the resolved command without running it.
optionalenv?: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
Inherited from
Section titled “Inherited from”RunDeps.exec
fileExists
Section titled “fileExists”fileExists: (
path) =>boolean
Defined in: cli/astromech/src/tasks/run/run.type.ts:30
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RunDeps.fileExists
filter?
Section titled “filter?”
optionalfilter?: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
Section titled “listDir”listDir: (
path) =>string[]
Defined in: cli/astromech/src/tasks/run/run.type.ts:31
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”RunDeps.listDir
logger
Section titled “logger”logger:
RunLogger
Defined in: cli/astromech/src/tasks/run/run.type.ts:27
Inherited from
Section titled “Inherited from”RunDeps.logger
lookPath
Section titled “lookPath”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.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”RunDeps.lookPath
passthrough?
Section titled “passthrough?”
optionalpassthrough?: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
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”RunDeps.print
readFile
Section titled “readFile”readFile: (
path) =>string
Defined in: cli/astromech/src/tasks/run/run.type.ts:29
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”RunDeps.readFile
required?
Section titled “required?”
optionalrequired?: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".