Inits a new command by options object without adding to group or instance.
the command configuration obtions.
Inits existing Command without adding to group or instance. This method a bit circular used as normalizer may set defaults or other options in the future.
a command instance.
an optional alias for the command.
Inits a new command by args without adding to group or commands.
the command to be executed.
the arguments to be pased.
an alias name for the command.
Inits a new command by args without adding to group or commands.
the command to be executed.
the arguments to be pased.
additional command options.
an alias name for the command.
Formats string for log output.
the data to be formatted.
A lookup and normalizer to find command. For most actions involving finding a command this method should be called as it simplifies the find.
the command name, alias or an instance of Command.
when false will get based on alias or command name.
Gets commands for a group.
the groups to get commands for.
Gets the index of a command.
the command name, alias or instance to get an index for.
Gets and formats the prefix for logging to output stream.
the command to get and format prefix for.
the color of the prefix if any.
Gets the prefix key from known keys in the prefix template.
Handles node signals, useful for cleanup.
Checks if a the Spawnmon instance knows of the command.
the command name or Command instance.
Checks if commands have a specific group.
the group to inpect if exists.
Kills running commands.
Kills specified commands.
Kills specified commands.
Outputs data to specified write stream.
the data or error to throw to write out to the write stream.
the command instance or name requesting output.
Pads the prefix for display in console.
the prefix to be padded.
the offset in spaces.
the alignment for the padding.
Ensures data is as string and that we don't have unnecessary line returns.
the data to be output.
Removes a command from the instance. Not likely to be used but for good measure it's here, also removes from any assigned groups.
the command to be removed.
Runs commands by name.
the name of the commands to run in group.
Runs commands by instance.
the Command instances to run.
Runs by group name(s).
additional groups to be run.
Sets the maximum allowable prefix VALUE length based on prefix key type. This is NOT based on the length of the entire prefix but rather the defined value e.g. index, command name, pid or timestamp.
list of command names or Command instances.
Generated using TypeDoc
Gets process id's of commands.