EgoJSCli
Creates a CLI interface to work with EgoJS.
Constructor Summary
Public Constructor | ||
public |
Create a new instance of the CLI interface and use commander to defined all the possible commands. |
Method Summary
Public Methods | ||
public |
addPackage(): Promise<null, Error> Use the prompt to add a new package. |
|
public |
Show the settings prompt in order to enter the new settings. |
|
public |
editPackage(id: Number): Promise<null, Error> Use the prompt to edit an existing package. |
|
public |
listPackages(): Promise<null, Error> List all the package stats on the terminal. |
|
public |
Clear the cache and show the table again. |
|
public |
removePackage(id: Number): Promise<null, Error> Use the prompt to remove an existing package. |
Public Constructors
public constructor source
Create a new instance of the CLI interface and use commander to defined all the possible commands.
Public Methods
public configure(): Promise<null, Error> source
Show the settings prompt in order to enter the new settings.
public editPackage(id: Number): Promise<null, Error> source
Use the prompt to edit an existing package.
Params:
Name | Type | Attribute | Description |
id | Number | The package unique id. |