Interface: RunGeneratedCliOptions
Properties
argv
readonlyargv: readonlystring[]
commands
readonlycommands: readonlyCompiledCliCommand[]
description?
readonlyoptionaldescription?:string
execute
readonlyexecute: (command,input,context) =>Promise<unknown>
Runs one resolved plain command with parsed input; returns the validated result.
Parameters
command
CompiledCliCommand
input
Readonly<Record<string, unknown>>
context
Returns
Promise<unknown>
isTty?
readonlyoptionalisTty?: () =>boolean
True when stdout is an interactive terminal; rendered commands then update progress in place.
Returns
boolean
name
readonlyname:string
render?
readonlyoptionalrender?: (command,input,context) =>GeneratedCliRenderSession
Opens one rendered run for a resolved .tsx command with parsed input.
Parameters
command
CompiledCliCommand
input
Readonly<Record<string, unknown>>
context
Returns
signal?
readonlyoptionalsignal?:AbortSignal
version
readonlyversion:string
writeErr?
readonlyoptionalwriteErr?: (text) =>void
Parameters
text
string
Returns
void
writeOut?
readonlyoptionalwriteOut?: (text) =>void
Parameters
text
string
Returns
void