Cli
Class
Cli
Hierarchy
Cli
Index
Methods
Methods
Static
command
command(commandLine: string
, Command: AbstractCommand, action: string
, config?: CliCommandConfigType): CliCommandType
Defined in Library/Cli/Cli.ts:27
Convenience method to help format a command.
┌─1─┐┌──2────┐ ┌4┐ stix generate module user -v │ └───────3─────────────┘ └─────────5────────────────┘
Legend:
- Command name Maps to Command
- Token Maps to action
- Arguments Passed to the action
- Options Passed to the action as part of arguments
- Command line The full command line, maps to command.
Parameters:
Name | Type | Description |
---|---|---|
commandLine | string | - |
Command | AbstractCommand | - |
action | string | - |
Optional config | CliCommandConfigType |
Returns: CliCommandType
Static
program
program(program: string
, config?: CliProgramConfigType): CliProgramType
Defined in Library/Cli/Cli.ts:31
Parameters:
Name | Type |
---|---|
program | string |
Optional config | CliProgramConfigType |
Returns: CliProgramType