Decaf-ts' CLI module
Example
run module command - $ npx decaf <module name> <module command> ...<module command options>
get module help - $ npx decaf help <module name>;
list imported modules - $ npx decaf list;
get cli help - $ npx decaf help;
Members
# static constant CLI_FILE_NAME
The standard filename for CLI module files where each library must export a single CliModule function
The filename that identifies Decaf CLI modules
# static constant VERSION
A constant that holds the version string of the package, which is replaced during build
Stores the current package version
# static constant VERSION
A constant that holds the version string of the package, which is replaced during build
Stores the current package version
Type Definitions
# CliModule() → {Command|Promise.<Command>}
Defines the signature for CLI module functions that each Decaf module must export under the CLI_FILE_NAME file The function should return a Command object or a Promise that resolves to a Command object
Function type for Decaf CLI modules
A Command object or Promise that resolves to a Command object
Command
|
Promise.<Command>