Class: Tree

commands/disconnect~ Tree

Command class

new Tree(app, config)

Create the service
Parameters:
Name Type Description
app App The application
config object Configuration

Members


<static> provides :string

Service name is 'commands.tree'
Type:
  • string

<static> requires :Array.<string>

Dependencies as constructor arguments
Type:
  • Array.<string>

Methods


<async> run(argv)

Run the command
Parameters:
Name Type Description
argv Array.<string> Arguments
Returns:
Type
Promise

buildTree(tree)

Build the tree
Parameters:
Name Type Description
tree object The tree with subnodes
Returns:
Type
object