AstromechOptions
Defined in: cli/astromech/src/astromech.type.ts:11
Everything createAstromech needs from the repo and the outside world; only cwd is required.
Properties
Section titled “Properties”config?
Section titled “config?”
optionalconfig?:TasksConfig
Defined in: cli/astromech/src/astromech.type.ts:19
The resolved task manifest. Optional for run (which is
filesystem-driven); thinCallers / packageScripts / ci need it.
Load it with loadTasksConfig from @theholocron/astromech/config.
cwd:
string
Defined in: cli/astromech/src/astromech.type.ts:13
Repo root.
optionalenv?:Record<string,string|undefined>
Defined in: cli/astromech/src/astromech.type.ts:47
Injectable environment for --affected (tests). Defaults to process.env.
optionalexec?:ExecFn
Defined in: cli/astromech/src/astromech.type.ts:39
Injectable subprocess runner (tests). Defaults to spawnSync (stdio inherit).
fileExists?
Section titled “fileExists?”
optionalfileExists?: (path) =>boolean
Defined in: cli/astromech/src/astromech.type.ts:43
Injectable existence check (tests). Defaults to node:fs.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
listDir?
Section titled “listDir?”
optionallistDir?: (path) =>string[]
Defined in: cli/astromech/src/astromech.type.ts:45
Injectable directory listing (tests). Defaults to node:fs.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
logger?
Section titled “logger?”
optionallogger?:RunLogger
Defined in: cli/astromech/src/astromech.type.ts:33
Structured-logging sink. Defaults to a no-op.
lookPath?
Section titled “lookPath?”
optionallookPath?: (cwd,bin) =>string|null
Defined in: cli/astromech/src/astromech.type.ts:49
Injectable binary lookup (tests). Default checks node_modules/.bin then PATH.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”string | null
orgContext?
Section titled “orgContext?”
optionalorgContext?:OrgContext
Defined in: cli/astromech/src/astromech.type.ts:24
Org context for the deploy workflow’s preview: shorthand — used to
derive the Cloudflare Pages project / domain when they are not spelt out.
print?
Section titled “print?”
optionalprint?: (line) =>void
Defined in: cli/astromech/src/astromech.type.ts:35
User-facing line printer. Defaults to console.log.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
readFile?
Section titled “readFile?”
optionalreadFile?: (path) =>string
Defined in: cli/astromech/src/astromech.type.ts:41
Injectable fs (tests). Default to node:fs.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
statusContexts?
Section titled “statusContexts?”
optionalstatusContexts?: readonlyStatusContext[]
Defined in: cli/astromech/src/astromech.type.ts:31
The commit statuses a coverage provider reports (Coverage.statusContexts(), names only), which the CLI passes
in because astromech imports no provider. Astromech.requiredChecks adds the required ones and
Astromech.aggregateCaller treats them as the aggregate’s statuses. Left out, a context starting with
codecov/ is a status and nothing is added, which is what a run with no provider loaded does.
optionalwarn?: (line) =>void
Defined in: cli/astromech/src/astromech.type.ts:37
Where a deprecation notice goes (an old task name, a group name). Defaults to console.error, so it is on stderr.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void