mirror of
https://github.com/docker/compose.git
synced 2025-09-21 16:57:51 +02:00
add completions for the --progress flag
Signed-off-by: may <m4rch3n1ng@gmail.com>
This commit is contained in:
parent
e75329dce2
commit
d3a260e533
@ -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(¶llel, "parallel", -1, `Control max parallelism, -1 for unlimited`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user