Constructor
# new CreateDSUCommand()
creates a new DSU of the provided type and with the provided key gen arguments
Analog to OpenDSU's Resolver createDSU method
Command syntax:
createdsu type domain args
args:
- type: 'array' | 'seed'
- domain: the anchoring domain
- args: string|string[] stringified
- Source object:
- any;
creates a new DSU of the provided type and with the provided key gen arguments
Analog to OpenDSU's Resolver createDSU method
Command syntax:
createdsu type domain args
args:
- type: 'array' | 'seed'
- domain: the anchoring domain
- args: string|string[] stringified
- Source object:
- any;
Extends
Methods
# protected _parseCommand(command, next, callback)
Should be overridden by child classes if any argument parsing is required
.Should be overridden by child classes if any argument parsing is required
Parameters:
| Name | Type | Description |
|---|---|---|
command |
Array.<string>
|
string
|
boolean
|
the command split into words |
next |
Array.<string>
|
the following Commands |
callback |
function
|
- Inherited From:
# protected _runCommand(arg, baropt, options, callback)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg |
string
|
object
|
the command argument |
|
bar |
Archive
|
<optional> |
|
options |
object
|
||
callback |
function
|
- Inherited From:
# execute(args, baropt, nextopt, optionsopt, callback)
Parses the command text and executes the command onto the provided DSU
.Parses the command text and executes the command onto the provided DSU
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
args |
Array.<string>
|
string
|
the arguments of the command split into words |
|
bar |
Archive
|
KeySSI
|
<optional> |
the destinationDSU or the keySSI |
next |
Array.<string>
|
<optional> |
the remaining commands |
options |
object
|
<optional> |
|
callback |
function
|
- Inherited From: