mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
parent
b2d86df660
commit
b79c140c43
@ -146,6 +146,16 @@ abstract class Command
|
|||||||
return $this->defaultActionName;
|
return $this->defaultActionName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get {@link moduleName}
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getModuleName()
|
||||||
|
{
|
||||||
|
return $this->moduleName;
|
||||||
|
}
|
||||||
|
|
||||||
public function hasDefaultActionName()
|
public function hasDefaultActionName()
|
||||||
{
|
{
|
||||||
return $this->hasActionName($this->defaultActionName);
|
return $this->hasActionName($this->defaultActionName);
|
||||||
|
@ -91,6 +91,12 @@ class Documentation
|
|||||||
return $d;
|
return $d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Command $command
|
||||||
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
protected function showCommandActions($command, $name)
|
protected function showCommandActions($command, $name)
|
||||||
{
|
{
|
||||||
$actions = $command->listActions();
|
$actions = $command->listActions();
|
||||||
@ -103,7 +109,11 @@ class Documentation
|
|||||||
$this->getMethodTitle($command, $action)
|
$this->getMethodTitle($command, $action)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$d .= "\nShow help on a specific action: icingacli help $name <action>\n";
|
$d .= "\nShow help on a specific action: icingacli help ";
|
||||||
|
if ($command->isModule()) {
|
||||||
|
$d .= $command->getModuleName() . ' ';
|
||||||
|
}
|
||||||
|
$d .= "$name <action>\n";
|
||||||
return $d;
|
return $d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user