MainService

MainService

Source:

Manages main init function and commands dispatching.

Methods

(static) help(config, hook_name) → {Promise}

Source:

Returns command line help interface.
Will include commandline hooks' help.

Parameters:
Name Type Description
config Config

Link to config manager

hook_name String

You can pass a commandline hook name or command to have a detailed help here.

Returns:
Type
Promise

(static) main(config, cmd_arguments) → {Promise}

Source:

Main app

Parameters:
Name Type Description
config Config

Link to config manager

cmd_arguments Object

Command arguments override

Returns:
Type
Promise

(static) parse_commands(config, cmd_arguments) → {Promise}

Source:

Parse command line arguments and commands

Parameters:
Name Type Description
config Config

Link to config manager

cmd_arguments Object

Command arguments override

Returns:
Type
Promise

(static) start_server() → {Promise}

Source:

Starts the service

Returns:
Type
Promise

(static) stop_server() → {Promise}

Source:

Stops the service

Returns:
Type
Promise