From d086a16d2b91d155861ebe7260edf4ae2923e7a8 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Sun, 19 Oct 2025 12:28:01 -0700 Subject: [PATCH] The `limactl list --json` option is not legacy or deprecated Signed-off-by: Jan Dubois --- cmd/limactl/list.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/limactl/list.go b/cmd/limactl/list.go index ab77ea16d67..bd11f49cc46 100644 --- a/cmd/limactl/list.go +++ b/cmd/limactl/list.go @@ -57,9 +57,7 @@ The output can be presented in one of several formats, using the --format }}' - If the format begins and ends with '{{ }}', then it is used as a go template. -` + store.FormatHelp + ` -The following legacy flags continue to function: - --json - equal to '--format json'`, +` + store.FormatHelp, Args: WrapArgsError(cobra.ArbitraryArgs), RunE: listAction, ValidArgsFunction: listBashComplete, @@ -68,7 +66,7 @@ The following legacy flags continue to function: listCommand.Flags().StringP("format", "f", "table", "Output format, one of: json, yaml, table, go-template") listCommand.Flags().Bool("list-fields", false, "List fields available for format") - listCommand.Flags().Bool("json", false, "JSONify output") + listCommand.Flags().Bool("json", false, "Same as --format=json") listCommand.Flags().BoolP("quiet", "q", false, "Only show names") listCommand.Flags().Bool("all-fields", false, "Show all fields") listCommand.Flags().StringArray("yq", nil, "Apply yq expression to each instance")