Constructor Summary
Public Constructor | ||
public |
constructor(PopApi: PopApi, options: Object) Create a new Cli object. |
Member Summary
Public Members | ||
public |
The name of the Cli program. |
|
public |
The command line parser to process the Cli inputs. |
|
public |
The version of the Cli program. |
Method Summary
Public Methods | ||
public |
Get the help message. |
|
public |
Initiate the options for the Cli. |
|
public |
Handle the --mode Cli option. |
|
public |
Method for displaying the --help option |
|
public |
Run the Cli program. |
Public Constructors
public constructor(PopApi: PopApi, options: Object) source
Create a new Cli object.
Params:
Name | Type | Attribute | Description |
PopApi | PopApi |
|
The PopApi instance to bind the cli to. |
options | Object |
|
The options for the cli. |
options.argv | Array<string> |
|
The arguments to be parsed by commander. |
options.name | string |
|
The name of the Cli program. |
options.version | string |
|
The version of the Cli program. |
Public Members
Public Methods
public mode(m: string): Object source
Handle the --mode Cli option.
Params:
Name | Type | Attribute | Description |
m | string |
|
The mode to run the API in. |