|
@@ 198-201 (lines=4) @@
|
| 195 |
|
|
| 196 |
|
$i = 1; |
| 197 |
|
$actionIds = []; |
| 198 |
|
foreach ($this->actions->getAllActions() as $id => $action) { |
| 199 |
|
$console->writeLine($i++ . " - " . $action->caption() . $this->shortDescription($action)); |
| 200 |
|
$actionIds[] = $id; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
$console->writeLine(); |
| 204 |
|
$actionIndex = $console->read('Action: '); |
|
@@ 234-236 (lines=3) @@
|
| 231 |
|
$console->writeLine('Available Actions'); |
| 232 |
|
$console->writeLine('~~~~~~~~~~~~~~~~~'); |
| 233 |
|
|
| 234 |
|
foreach ($this->actions->getAllActions() as $id => $action) { |
| 235 |
|
$console->writeLine($id . ' - ' . $action->caption() . $this->shortDescription($action)); |
| 236 |
|
} |
| 237 |
|
$console->writeLine(); |
| 238 |
|
} |
| 239 |
|
|