diff --git a/docs/cli/config.md b/docs/cli/config.md index 79457da5c..f757327f3 100644 --- a/docs/cli/config.md +++ b/docs/cli/config.md @@ -1,6 +1,6 @@ # `mise config` -**Usage**: `mise config [--no-header] ` +**Usage**: `mise config [--no-header] [-J --json] ` **Aliases**: `cfg` @@ -12,9 +12,13 @@ Manage config files Do not print table header +### `-J --json` + +Output in JSON format + ## Subcommands * [`mise config generate [-o --output ]`](/cli/config/generate.md) * [`mise config get [-f --file ] [KEY]`](/cli/config/get.md) -* [`mise config ls [--no-header]`](/cli/config/ls.md) +* [`mise config ls [--no-header] [-J --json]`](/cli/config/ls.md) * [`mise config set [-f --file ] [-t --type ] `](/cli/config/set.md) diff --git a/docs/cli/config/ls.md b/docs/cli/config/ls.md index e53064f4d..c665ff6cb 100644 --- a/docs/cli/config/ls.md +++ b/docs/cli/config/ls.md @@ -1,6 +1,6 @@ # `mise config ls` -**Usage**: `mise config ls [--no-header]` +**Usage**: `mise config ls [--no-header] [-J --json]` List config files currently in use @@ -10,6 +10,10 @@ List config files currently in use Do not print table header +### `-J --json` + +Output in JSON format + Examples: mise config ls diff --git a/docs/cli/index.md b/docs/cli/index.md index 1b4afc020..e173043f8 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -41,10 +41,10 @@ Answer yes to all confirmation prompts * [`mise cache clear [PLUGIN]...`](/cli/cache/clear.md) * [`mise cache prune [--dry-run] [-v --verbose...] [PLUGIN]...`](/cli/cache/prune.md) * [`mise completion [SHELL]`](/cli/completion.md) -* [`mise config [--no-header] `](/cli/config.md) +* [`mise config [--no-header] [-J --json] `](/cli/config.md) * [`mise config generate [-o --output ]`](/cli/config/generate.md) * [`mise config get [-f --file ] [KEY]`](/cli/config/get.md) -* [`mise config ls [--no-header]`](/cli/config/ls.md) +* [`mise config ls [--no-header] [-J --json]`](/cli/config/ls.md) * [`mise config set [-f --file ] [-t --type ] `](/cli/config/set.md) * [`mise current [PLUGIN]`](/cli/current.md) * [`mise deactivate`](/cli/deactivate.md) diff --git a/mise.usage.kdl b/mise.usage.kdl index b715bdfa8..6e1b2a3d3 100644 --- a/mise.usage.kdl +++ b/mise.usage.kdl @@ -186,6 +186,7 @@ cmd "config" help="Manage config files" { alias "cfg" alias "toml" hide=true flag "--no-header" help="Do not print table header" + flag "-J --json" help="Output in JSON format" cmd "generate" help="[experimental] Generate a mise.toml file" { alias "g" after_long_help r"Examples: @@ -215,6 +216,7 @@ cmd "config" help="Manage config files" { $ mise config ls " flag "--no-header" help="Do not print table header" + flag "-J --json" help="Output in JSON format" } cmd "set" help="Display the value of a setting in a mise.toml file" { after_long_help r"Examples: