Class: Load

commands/load~ Load

Command class

new Load(app, config)

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

Members


<static> provides :string

Service name is 'commands.load'
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

<async> init()

Initialize the command
Returns:
Type
Promise

<async> printTable(list)

Print the table
Parameters:
Name Type Description
list object
Returns:
Type
Promise

<async> request(trackerName [, sockName])

Request the list
Parameters:
Name Type Argument Description
trackerName string Name of the tracker
sockName string <optional>
Socket name
Returns:
Type
Promise

<async> load(trackerName, list [, sockName])

Load the list
Parameters:
Name Type Argument Description
trackerName string Name of the tracker
list object List as in the protocol
sockName string <optional>
Socket name
Returns:
Type
Promise