CliAppUnit

flitter-cli/CliAppUnit~ CliAppUnit

Final unit to run the ./flitter CLI utility. This will replace the default module:libflitter/app/AppUnit~AppUnit.

Constructor

new CliAppUnit()

Source:

Methods

(async) go(app, context, argvopt) → {Promise.<void>}

Source:

Loads the unit. Retrieves the CLI arguments and passes control off to the appropriate module:flitter-cli/Directive~Directive handler.

Parameters:
Name Type Attributes Default Description
app module:libflitter/app/FlitterApp~FlitterApp

the Flitter app

context module:libflitter/Context~Context

the unit's context

argv Array.<string> <optional>
process.argv.slice(2)

the CLI argv to be interpreted

Returns:
Type
Promise.<void>

name() → {string}

Source:

Get the name of the unit.

Returns:

"CliApp"

Type
string