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 argvArray.<string> Arguments Returns:
- Type
- Promise
-
<async> init()
-
Initialize the command
Returns:
- Type
- Promise
-
<async> printTable(list)
-
Print the table
Parameters:
Name Type Description listobject Returns:
- Type
- Promise
-
<async> request(trackerName [, sockName])
-
Request the list
Parameters:
Name Type Argument Description trackerNamestring Name of the tracker sockNamestring <optional>
Socket name Returns:
- Type
- Promise
-
<async> load(trackerName, list [, sockName])
-
Load the list
Parameters:
Name Type Argument Description trackerNamestring Name of the tracker listobject List as in the protocol sockNamestring <optional>
Socket name Returns:
- Type
- Promise