new Create(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.create'
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> updateConnections(trackerName, acceptPath [, list] [, sockName])
-
Load the connection
Parameters:
Name Type Argument Description trackerNamestring Name of the tracker acceptPathstring Check path of the list items listobject <optional>
List of updated connections sockNamestring <optional>
Socket name Returns:
- Type
- Promise