Skip to content

Commit d3a260e

Browse files
m4rch3n1ngndeloof
authored andcommitted
add completions for the --progress flag
Signed-off-by: may <[email protected]>
1 parent e75329d commit d3a260e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/compose/compose.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,10 @@ func RootCommand(dockerCli command.Cli, backend Backend) *cobra.Command { //noli
661661
"profile",
662662
completeProfileNames(dockerCli, &opts),
663663
)
664+
c.RegisterFlagCompletionFunc( //nolint:errcheck
665+
"progress",
666+
cobra.FixedCompletions(printerModes, cobra.ShellCompDirectiveNoFileComp),
667+
)
664668

665669
c.Flags().StringVar(&ansi, "ansi", "auto", `Control when to print ANSI control characters ("never"|"always"|"auto")`)
666670
c.Flags().IntVar(&parallel, "parallel", -1, `Control max parallelism, -1 for unlimited`)

0 commit comments

Comments
 (0)