Class

GenDBCommand

Commands.GenDBCommand()

Constructor

# new GenDBCommand()

Generates a DB and returns it's SSI after initialization

Source object:

  • a DSU;
.

Generates a DB and returns it's SSI after initialization

Source object:

  • a DSU;

View Source services/dt/commands/gendb.js, line 5

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:

View Source services/dt/commands/Command.js, line 92

# 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:

View Source services/dt/commands/Command.js, line 107

# 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:

View Source services/dt/commands/Command.js, line 45