Commit cd0f17bb authored by Jon Pugh's avatar Jon Pugh

Add "Editing context" and "Editing Service" notification.

parent aab9ef08
......@@ -190,6 +190,14 @@ class SaveCommand extends Command
$this->context = new $class($input->getArgument('context_name'), $this->getProvision(), $options);
}
else {
$icon = Provision::ICON_EDIT;
$this->getProvision()->io()->block(
" {$icon} Editing context {$this->context->name} ",
NULL,
'bg=black;fg=blue',
NULL,
TRUE
);
// Save over existing contexts.
$this->newContext = FALSE;
......@@ -363,7 +371,7 @@ class SaveCommand extends Command
$this->io->comment("Using option {$name}={$properties[$name]}");
}
else {
$properties[$name] = $this->io->ask("{$name}({$property->description})", $property->default, $property->validate);
$properties[$name] = $this->io->ask("{$name} ({$property->description})", $property->default, $property->validate);
}
}
return $properties;
......
......@@ -54,7 +54,12 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
* The path within config_path to write contexts to.
*/
const CONTEXTS_PATH = 'contexts';
/**
* Icons
*/
const ICON_EDIT = '🖉';
use BuilderAwareTrait;
use ConfigAwareTrait;
use ContainerAwareTrait;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment