Commit e4275431 authored by Jon Pugh's avatar Jon Pugh
Browse files

Only show console config in `provision status` when verbose.

parent 2831c47c
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ class StatusCommand extends Command
            $this->context->showServices($this->io);
        }
        else {
            $headers = ['Provision CLI Configuration'];
            if ($this->output->isVerbose()) {
                $headers = ['Provision Console Configuration'];
                $rows = [];
                $config = $this->getProvision()->getConfig()->toArray();
                unset($config['options']);
@@ -70,6 +71,10 @@ class StatusCommand extends Command
                    $rows[] = [$key, $value];
                }
                $this->io->table($headers, $rows);
                $this->getProvision()->getLogger()->info('You can modify your console configuration using the file {path}', [
                    'path ' => $this->getProvision()->getConfig()->get('console_config_path'),
                ]);
            }

            // Lookup all contexts
            $tables = [];