Add output format option. (#1512)

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
This commit is contained in:
Phillip Hoff 2021-06-28 14:49:07 -07:00 committed by GitHub
parent 55d9123cfe
commit 702e38863f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ dapr list [flags]
| --- | --- | --- | --- | | --- | --- | --- | --- |
| `--help`, `-h` | | | Print this help message | | `--help`, `-h` | | | Print this help message |
| `--kubernetes`, `-k` | | `false` | List all Dapr pods in a Kubernetes cluster | | `--kubernetes`, `-k` | | `false` | List all Dapr pods in a Kubernetes cluster |
| `--output`, `-o` | | `table` | The output format of the list. Valid values are: `json`, `yaml`, or `table`
## Examples ## Examples
@ -37,3 +38,8 @@ dapr list
```bash ```bash
dapr list -k dapr list -k
``` ```
### List Dapr instances in JSON format
```bash
dapr list -o json
```