App

App class. This is where everything starts, the boot process:

  1. Parsing all arguments and environment values
  2. Create Bajo instance
  3. Building base config
  4. Building plugins
  5. Collect all config handler
  6. Building extra config
  7. Setup boot order
  8. Boot loaded plugins
  9. Attach exit handlers
  10. Finish

After boot process is completed, event bajo:afterBootComplete is emitted.

If app mode is applet, it runs your choosen applet instead.

Constructor

new App(cwd)

Class constructor

Parameters:
NameTypeDescription
cwdstring

Current working dirctory

Members

getPluginNames

Get all loaded plugin names

Methods

addPlugin(plugin)

Add a plugin to the app

Parameters:
NameTypeDescription
pluginObject

A valid bajo plugin

(async) boot()

Booting the app

dump(…args)

Dumping variable on screen

Parameters:
NameTypeAttributesDescription
argsany<repeatable>

any arguments passed will be displayed on screen. If the last argument is a boolean 'true', app will quit rightaway