ShellDirective

flitter-cli/directives/ShellDirective~ ShellDirective

Directive to launch an interactive Node prompt from within Flitter.

Constructor

new ShellDirective()

Source:

Instantiate the class.

Extends

Methods

(static) help() → {string}

Source:

Get the usage text for the directive. Used by ./flitter help.

Returns:
Type
string

(static) name() → {string}

Source:

Get the name of the directive. Used by ./flitter.

Returns:
Type
string

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

Source:
Overrides:

Handle an invocation of this directive. Launch an interactive shell.

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

the Flitter app

argv Array

the CLI arguments after the directive

Returns:
Type
Promise.<void>