Directive

flitter-cli/Directive~ Directive

Base class for ./flitter directives.

Constructor

new Directive()

Source:

Methods

(static) help() → {null}

Source:

Get the usage information of the directive. This is displayed on the ./flitter help page.

Returns:
Type
null

(static) name() → {null}

Source:

Get the name of the directive. This is used by ./flitter to run this directive.

Returns:
Type
null

(async) handle(app, argv) → {Promise.<void>}

Source:

Handle an invocation of this directive.

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

the Flitter app

argv Array

CLI arguments after the directive

Returns:
Type
Promise.<void>