summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-05-01 15:34:58 +0200
committerGitHub <noreply@github.com>2023-05-01 15:34:58 +0200
commit8455abbb3397650911de0f53c106a2a851980145 (patch)
tree16831590e0b338a6c3dd45972684e00eaf1206aa /docs
parent9ee3bc42c01c5aa80e12319e8e9db86f64cbafa0 (diff)
parent5e52a9dd41c906c54a8bb6c1333184ccbe307677 (diff)
Merge pull request #9067 from nextcloud/bugfix/8404/fix-json-output
Fix json output
Diffstat (limited to 'docs')
-rw-r--r--docs/occ.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/occ.md b/docs/occ.md
index 36dd3a220..99a330bd2 100644
--- a/docs/occ.md
+++ b/docs/occ.md
@@ -6,7 +6,7 @@ Add a new command
### Usage
-* `talk:command:add <cmd> <name> <script> <response> <enabled>`
+* `talk:command:add [--output [OUTPUT]] [--] <cmd> <name> <script> <response> <enabled>`
| Arguments | Description | Is required | Is array | Default |
|---|---|---|---|---|
@@ -16,6 +16,10 @@ Add a new command
| `response` | Who should see the response: 0 - No one, 1 - User, 2 - All | yes | no | `NULL` |
| `enabled` | Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests | yes | no | `NULL` |
+| Options | Accept value | Is value required | Is multiple | Default |
+|---|---|---|---|---|
+| `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | 'plain'` |
+
## talk:command:add-samples
Adds some sample commands: /wiki, …
@@ -58,7 +62,7 @@ Add a new command
### Usage
-* `talk:command:update <command-id> <cmd> <name> <script> <response> <enabled>`
+* `talk:command:update [--output [OUTPUT]] [--] <command-id> <cmd> <name> <script> <response> <enabled>`
| Arguments | Description | Is required | Is array | Default |
|---|---|---|---|---|
@@ -69,6 +73,10 @@ Add a new command
| `response` | Who should see the response: 0 - No one, 1 - User, 2 - All | yes | no | `NULL` |
| `enabled` | Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests | yes | no | `NULL` |
+| Options | Accept value | Is value required | Is multiple | Default |
+|---|---|---|---|---|
+| `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | 'plain'` |
+
## talk:monitor:calls
Prints a list with conversations that have an active call as well as their participant count