`--log-as-json` should not be present as a flag under `dapr list`
- Dominant language
- Go
- Stars
- 353
- Forks
- 221
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
## Expected Behavior
When running `dapr list --log-as-json`, I expect the output to be in JSON format.
## Actual Behavior
The output is in the default table format.
## Steps to Reproduce the Problem
```bash
% dapr --version
CLI version: 1.2.0-rc.2
Runtime version: 1.2.0-rc.3
% dapr list --help
List all Dapr instances. Supported platforms: Kubernetes and self-hosted
Usage:
dapr list [flags]
Examples:
# List Dapr instances in self-hosted mode
dapr list
# List Dapr instances in Kubernetes mode
dapr list -k
Flags:
-h, --help Print this help message
-k, --kubernetes List all Dapr pods in a Kubernetes cluster
Global Flags:
--log-as-json Log output in JSON format
% dapr list --log-as-json
APP ID HTTP PORT GRPC PORT APP PORT COMMAND AGE CREATED PID
Ninjabronze-Reaper 54536 54537 0 4m 2021-05-25 10:36.29 28261
```
Contributor guide
Assessment
This issue has not been assessed yet.