Protected
Readonly
loggingProtected
optionsProtected
Optional
replThe created Node.js REPL server.
Private
appThe global application instance.
Protected
appGet the global Application.
Protected
containerGet the method with the given name from this class, bound to this class.
function
Get the method with the given name from this class, bound to this class.
function
Rest
...args: any[]Get the flag option that signals help. Usually, this is named 'help' and supports the flags '--help' and '-?'.
Get an array of options defined for this command.
Protected
instantiateCreate an instance of CLIOption based on a string definition of a particular format.
e.g. '{file name} | canonical name of the resource to create' e.g. '--push -p {value} | the value to be pushed' e.g. '--force -f | do a force push'
Protected
makeProtected
nativeProcess the raw CLI arguments using an array of option class instances to build a mapping of option names to provided values.
Protected
until
Launch an interactive REPL shell from within the application. This is very useful for debugging and testing things during development.
By default, the shell launches a TypeScript interpreter, but you can use the
--js
flag to get a JavaScript interpreter.Example