Helper recursive function for flattening a given tree definition
Previous command objects to prepend to the given child name
Tree definition to use when searching for descendants
Indicates whether or not we should include aliases in the recursion
(recursion) resulting list of flattened descendants
(recursion) Initial tree definition
Concatenated list of flattened descendants
Accepts the command definition document tree and flattens to a single level. This is used to make searching commands and others easily.
The command document tree
Indicates whether or not we should include aliases in the flattened command tree
Accepts the command definition document tree and flattens to a single level, including aliases. This is used to make searching commands and others easily.
The command document tree
TODO - This needs to be well tested TODO - There is a situation where two groups could have the same child command TODO - It appears to choose the last in the list
Find the option definition from the .options field of the command definition
the definition for the command
the definition of the option, otherwise undefined
Check if an option was specified by the user.
the option to check for.
the definition for the command
true: the option was specified by the user. false: the option was omitted/set to false
Get a representation of the original command as issued by the user .with all canonical forms of options specified. You only need to supply the "command" segement of your command. The "full command" (including previous groups, etc.) is extracted from the yargs arguments object "_" property. TODO: Replace "maincommand" below with the name of the bin - This is new to Imperative.
The Yargs style argument object. Requires the "_" (input argv)
The command definition document
Generated using TypeDoc
Command utility class. Place static utils for command processing here.