Members
(static) dependencies :Array.<string>
Class dependencies:
['app']
.
Methods
run(command, argv, yargsopt)
Run command based on argv object.
If an exception occurs, handle it with the application exception handler.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
command |
console.Command | The command instance. | |
argv |
object.<string, string> | The Yargs arguments. | |
yargs |
Yargs |
<optional> |
The Yargs instance. |
Returns:
The async process promise.
- Type
- Promise
(async) unsafeRun(command, argv, yargsopt)
Run command based on argv object.
If an exception occurs, throw it withing catching it through the application exception handler.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
command |
console.Command | The command instance. | |
argv |
object.<string, string> | The Yargs arguments. | |
yargs |
Yargs |
<optional> |
The Yargs instance. |
Returns:
The async process promise.
- Type
- Promise
(async) runPreprocess(command, argvopt)
Run command preprocess.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
command |
console.Command | The command instance. | ||
argv |
object.<string, string> |
<optional> |
{}
|
The Yargs arguments. |
Returns:
The async process promise.
- Type
- Promise
runHandle(command)
Run command handle method.
Parameters:
Name | Type | Description |
---|---|---|
command |
console.Command | The command instance. |
Returns:
The async process promise with the possible returned data from the command.
- Type
- Promise.<*>
(async) runPostprocess(command, dataopt)
Run command postprocess.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
command |
console.Command | The command instance. | |
data |
* |
<optional> |
The data to use when postprocessing. |
Returns:
The async process promise.
- Type
- Promise