bugscpp.processor.core.command

Core module of defining commands.

Inherit from the classes to add a new command: - SimpleCommand - ShellCommand - DockerCommand

Note that the module name of a newly defined command will be the command name. For instance, if MyNewCommand is defined at my_command.py, MyNewCommand can be invoked from “d++ my_command” at command-line.

Classes

AbstractCommandRegistryMeta(name, bases, attrs)

Class that combines CommandRegistryMeta with ABCMeta.

BaseCommandRegistry()

Base class of CommandRegistry.

Command()

Abstract class to implement a command.

CommandRegistryMeta(name, bases, attrs)

Metaclass which auto registers class.

DockerCommand(parser)

Executes each command of DockerCommandLine one by one inside a docker container.

DockerCommandScript(command_type, command)

A list of "DockerCommand"s to be serially executed

DockerCommandScriptGenerator(metadata, ...)

Factory class of DockerCommandScript.

RegisteredCommands()

Descriptor to access registered commands.

ShellCommand()

Command that does not use docker but shell instead.

ShellCommandArguments(commands)

SimpleCommand()

Command that does not use docker.