new Command()
- Source:
Methods
cli() → {CLI}
- Source:
Returns:
-
the command line interface, can be null
-
- Type
- CLI
complete(completion)
Perform command completion, when the command is done completing it should call
or )} method to signal completion is done.
Parameters:
Name | Type | Description |
---|---|---|
completion |
Completion | the completion object |
- Source:
createProcess(args) → {Process}
Create a new process with the passed arguments.
Parameters:
Name | Type | Description |
---|---|---|
args |
Array.<CliToken> | the process arguments |
- Source:
Returns:
the process
- Type
- Process
name() → {string}
- Source:
Returns:
-
the command name
-
- Type
- string