mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 06:23:05 -05:00
parent
1e351a7724
commit
656a5ada0e
1 changed files with 23 additions and 0 deletions
|
|
@ -34,6 +34,29 @@ class ProcessCommand extends Command
|
|||
$this->storage = new LegacyStorage($this->Config()->getSection('global'));
|
||||
}
|
||||
|
||||
/**
|
||||
* List all available process
|
||||
*
|
||||
* USAGE
|
||||
*
|
||||
* icingacli businessprocess list processes [options]
|
||||
*
|
||||
* OPTIONS
|
||||
*
|
||||
* --no-title Show only the process names and no related title
|
||||
*/
|
||||
public function listAction()
|
||||
{
|
||||
$noTitle = $this->params->shift('no-title');
|
||||
foreach ($this->storage->listProcesses() as $key => $title) {
|
||||
if ($noTitle) {
|
||||
echo $key . "\n";
|
||||
} else {
|
||||
echo $title . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check a specific process
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue