feat(cli): add --output={text,json} to version cmd (#7010)

* feat(cliui): add TextFormat
* feat(cli): add --format={text,json} to version cmd
This commit is contained in:
Cian Johnston
2023-04-05 13:16:05 +01:00
committed by GitHub
parent 9c4ccd76a0
commit 00d468b964
7 changed files with 192 additions and 33 deletions
+12 -1
View File
@@ -7,5 +7,16 @@ Show coder version
## Usage
```console
coder version
coder version [flags]
```
## Options
### -o, --output
| | |
| ------- | ------------------- |
| Type | <code>string</code> |
| Default | <code>text</code> |
Output format. Available formats: text, json.