From 30947c43b8a64583867eb42b768caf40af28b027 Mon Sep 17 00:00:00 2001 From: rsteube Date: Thu, 13 Apr 2023 08:44:31 +0200 Subject: [PATCH] docker-compose: updates from v2.17.2 --- completers/docker-compose_completer/cmd/pause.go | 1 + completers/docker-compose_completer/cmd/root.go | 4 +++- completers/docker-compose_completer/cmd/top.go | 1 + completers/docker-compose_completer/cmd/unpause.go | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/completers/docker-compose_completer/cmd/pause.go b/completers/docker-compose_completer/cmd/pause.go index 0ca9ebc249..ed8b8526e7 100644 --- a/completers/docker-compose_completer/cmd/pause.go +++ b/completers/docker-compose_completer/cmd/pause.go @@ -14,6 +14,7 @@ var pauseCmd = &cobra.Command{ func init() { carapace.Gen(pauseCmd).Standalone() + rootCmd.AddCommand(pauseCmd) carapace.Gen(pauseCmd).PositionalAnyCompletion( diff --git a/completers/docker-compose_completer/cmd/root.go b/completers/docker-compose_completer/cmd/root.go index c95d2ada8c..9fbb4c2071 100644 --- a/completers/docker-compose_completer/cmd/root.go +++ b/completers/docker-compose_completer/cmd/root.go @@ -19,9 +19,11 @@ func Execute() error { func init() { carapace.Gen(rootCmd).Standalone() + rootCmd.Flags().String("ansi", "auto", "Control when to print ANSI control characters (\"never\"|\"always\"|\"auto\")") rootCmd.Flags().Bool("compatibility", false, "Run compose in backward compatibility mode") - rootCmd.Flags().String("env-file", "", "Specify an alternate environment file.") + rootCmd.Flags().Bool("dry-run", false, "Execute command in dry run mode") + rootCmd.Flags().StringArray("env-file", []string{}, "Specify an alternate environment file.") rootCmd.Flags().StringArrayP("file", "f", []string{}, "Compose configuration files") rootCmd.Flags().Bool("no-ansi", false, "Do not print ANSI control characters (DEPRECATED)") rootCmd.Flags().Int("parallel", -1, "Control max parallelism, -1 for unlimited") diff --git a/completers/docker-compose_completer/cmd/top.go b/completers/docker-compose_completer/cmd/top.go index b9080674ba..584d61c6ee 100644 --- a/completers/docker-compose_completer/cmd/top.go +++ b/completers/docker-compose_completer/cmd/top.go @@ -14,6 +14,7 @@ var topCmd = &cobra.Command{ func init() { carapace.Gen(topCmd).Standalone() + rootCmd.AddCommand(topCmd) carapace.Gen(topCmd).PositionalAnyCompletion( diff --git a/completers/docker-compose_completer/cmd/unpause.go b/completers/docker-compose_completer/cmd/unpause.go index 16f1e9abe2..c102c0f9a5 100644 --- a/completers/docker-compose_completer/cmd/unpause.go +++ b/completers/docker-compose_completer/cmd/unpause.go @@ -14,6 +14,7 @@ var unpauseCmd = &cobra.Command{ func init() { carapace.Gen(unpauseCmd).Standalone() + rootCmd.AddCommand(unpauseCmd) carapace.Gen(unpauseCmd).PositionalAnyCompletion(