docs: update readme
This commit is contained in:
@@ -266,6 +266,14 @@ All CLI commands support JSON output for easier parsing and integration with scr
|
|||||||
./bin/goyco --json status | jq '.status'
|
./bin/goyco --json status | jq '.status'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also set JSON output as the default by setting the `CLI_JSON_OUTPUT` environment variable to `true` in your `.env` file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
CLI_JSON_OUTPUT=true
|
||||||
|
```
|
||||||
|
|
||||||
|
When set, all CLI commands will output JSON by default. You can still override this by using the `--json` flag explicitly or by setting it to `false` in the environment variable.
|
||||||
|
|
||||||
**Note for destructive operations**: When using `--json` with `prune` commands, you must also use the `--yes` flag to skip interactive confirmation prompts:
|
**Note for destructive operations**: When using `--json` with `prune` commands, you must also use the `--yes` flag to skip interactive confirmation prompts:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user