interface NodeCommandControllerPluginInterface (View source)

An interface for plugins for the NodeCommandController

Methods

static string
getSubCommandShortDescription(string $controllerCommandName)

Returns a short description for the specific task the plugin solves for the specified command

static string
getSubCommandDescription(string $controllerCommandName)

Returns a piece of description for the specific task the plugin solves for the specified command

void
invokeSubCommand(string $controllerCommandName, ConsoleOutput $output, NodeType $nodeType = null, string $workspaceName = 'live', bool $dryRun = false, bool $cleanup = true)

A method which runs the task implemented by the plugin for the given command

Details

static string getSubCommandShortDescription(string $controllerCommandName)

Returns a short description for the specific task the plugin solves for the specified command

Parameters

string $controllerCommandName

Name of the command in question, for example "repair"

Return Value

string

A brief description / summary for the task this plugin is going to do

static string getSubCommandDescription(string $controllerCommandName)

Returns a piece of description for the specific task the plugin solves for the specified command

Parameters

string $controllerCommandName

Name of the command in question, for example "repair"

Return Value

string

A piece of text to be included in the overall description of the node:xy command

void invokeSubCommand(string $controllerCommandName, ConsoleOutput $output, NodeType $nodeType = null, string $workspaceName = 'live', bool $dryRun = false, bool $cleanup = true)

A method which runs the task implemented by the plugin for the given command

Parameters

string $controllerCommandName

Name of the command in question, for example "repair"

ConsoleOutput $output

An instance of ConsoleOutput which can be used for output or dialogues

NodeType $nodeType

Only handle this node type (if specified)

string $workspaceName

Only handle this workspace (if specified)

bool $dryRun

If true, don't do any changes, just simulate what you would do

bool $cleanup

If false, cleanup tasks are skipped

Return Value

void