Methods

(async) factory(pkgName) → {BajoCli}

Plugin factory,

Never call this function directly!!! It's only-meant to be called by the Bajo framework during plugin initialization.

Parameters:
NameTypeDescription
pkgNamestring

NPM package name

Returns:
  • BajoCli class
Type: 
BajoCli

Type Definitions

TCommand

Command definition object.

Type:
  • object
Properties
NameTypeDescription
commandstring

Command syntax

aliasesArray.<string>

Command aliases

describestring

Command description

builderfunction

Function to build command options

handlerfunction

Function to handle the command execution