summaryrefslogtreecommitdiffstats
path: root/core/Command/Base.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-21 14:03:09 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-29 15:57:10 +0200
commit691a5d40a4420c15a23db0f49f67a7fb1ecf7738 (patch)
treec29a44406a3cffc03750da5703ec5febb91790e5 /core/Command/Base.php
parente1df6b5702224bbbdc4ed555ecc90620ba9b0e40 (diff)
downloadnextcloud-server-691a5d40a4420c15a23db0f49f67a7fb1ecf7738.tar.gz
nextcloud-server-691a5d40a4420c15a23db0f49f67a7fb1ecf7738.zip
Add autocomplete for config:*
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Base.php')
-rw-r--r--core/Command/Base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Command/Base.php b/core/Command/Base.php
index 1a78e3b4062..15878a807d8 100644
--- a/core/Command/Base.php
+++ b/core/Command/Base.php
@@ -167,6 +167,9 @@ class Base extends Command implements CompletionAwareInterface {
* @return string[]
*/
public function completeOptionValues($optionName, CompletionContext $context) {
+ if ($optionName === 'output') {
+ return ['plain', 'json', 'json_pretty'];
+ }
return [];
}