Interface: CliServiceCliDependencies
Injectable lifecycle and output boundary for service CLI tests and composition.
Properties
Section titled “Properties”execute?
Section titled “execute?”
readonlyoptionalexecute?: (command,arguments_) =>Promise<void>
Run a caller-supplied command with inherited terminal input and output.
Parameters
Section titled “Parameters”command
Section titled “command”string
arguments_
Section titled “arguments_”readonly string[]
Returns
Section titled “Returns”Promise<void>
Methods
Section titled “Methods”create()
Section titled “create()”create(
definition):CliServiceLifecycle
Construct the lifecycle manager used by command actions.
Parameters
Section titled “Parameters”definition
Section titled “definition”Returns
Section titled “Returns”write()
Section titled “write()”write(
value):void
Write the JSON result of the status command.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void