Class: Import

commands/import~ Import

Command class

new Import(app, config, help)

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

Members


<static> provides :string

Service name is 'commands.import'
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> importConnections(trackerName, token [, list] [, sockName])

import the connection
Parameters:
Name Type Argument Description
trackerName string Name of the tracker
token string The token
list object <optional>
List of updated connections
sockName string <optional>
Socket name
Returns:
Type
Promise