diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-16 17:51:33 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-16 17:51:33 +0200 |
commit | d5dcb60e5d796852cf62183c388605793bb89c09 (patch) | |
tree | 6762afc1e78a3fd34d9c9e39153f4d096a4e4eaa /core/command/config | |
parent | bfb90d10edfc863213522c704f7d0b8bad8c8646 (diff) | |
download | nextcloud-server-d5dcb60e5d796852cf62183c388605793bb89c09.tar.gz nextcloud-server-d5dcb60e5d796852cf62183c388605793bb89c09.zip |
Use json_pretty as default for the config lists (for easier export/import)
Diffstat (limited to 'core/command/config')
-rw-r--r-- | core/command/config/listconfigs.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/command/config/listconfigs.php b/core/command/config/listconfigs.php index be3073e54d9..d80bd2b98ca 100644 --- a/core/command/config/listconfigs.php +++ b/core/command/config/listconfigs.php @@ -30,6 +30,8 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ListConfigs extends Base { + protected $defaultOutputFormat = 'json_pretty'; + /** @var array */ protected $sensitiveValues = [ 'dbpassword', @@ -81,11 +83,6 @@ class ListConfigs extends Base { $app = $input->getArgument('app'); $noSensitiveValues = !$input->getOption('private'); - if ($noSensitiveValues && !$input->hasParameterOption('--output')) { - // If you post this publicly we prefer the json format - $input->setOption('output', 'json_pretty'); - } - switch ($app) { case 'system': $configs = [ |