Browse Source

add completions for the --progress flag

Signed-off-by: may <[email protected]>
may 3 months ago
parent
commit
d3a260e533
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cmd/compose/compose.go

+ 4 - 0
cmd/compose/compose.go

@@ -661,6 +661,10 @@ func RootCommand(dockerCli command.Cli, backend Backend) *cobra.Command { //noli
 		"profile",
 		completeProfileNames(dockerCli, &opts),
 	)
+	c.RegisterFlagCompletionFunc( //nolint:errcheck
+		"progress",
+		cobra.FixedCompletions(printerModes, cobra.ShellCompDirectiveNoFileComp),
+	)
 
 	c.Flags().StringVar(&ansi, "ansi", "auto", `Control when to print ANSI control characters ("never"|"always"|"auto")`)
 	c.Flags().IntVar(&parallel, "parallel", -1, `Control max parallelism, -1 for unlimited`)