mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-16 04:34:32 +00:00
30 lines
1.0 KiB
Go
30 lines
1.0 KiB
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/completers/docker-compose_completer/cmd/action"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pullCmd = &cobra.Command{
|
|
Use: "pull [OPTIONS] [SERVICE...]",
|
|
Short: "Pull service images",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(pullCmd).Standalone()
|
|
|
|
pullCmd.Flags().Bool("ignore-buildable", false, "Ignore images that can be built.")
|
|
pullCmd.Flags().Bool("ignore-pull-failures", false, "Pull what it can and ignores images with pull failures.")
|
|
pullCmd.Flags().Bool("include-deps", false, "Also pull services declared as dependencies.")
|
|
pullCmd.Flags().Bool("no-parallel", true, "DEPRECATED disable parallel pulling.")
|
|
pullCmd.Flags().Bool("parallel", true, "DEPRECATED pull multiple images in parallel.")
|
|
pullCmd.Flags().BoolP("quiet", "q", false, "Pull without printing progress information.")
|
|
rootCmd.AddCommand(pullCmd)
|
|
|
|
carapace.Gen(pullCmd).PositionalAnyCompletion(
|
|
action.ActionServices(pullCmd).FilterArgs(),
|
|
)
|
|
}
|