mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
703 B
Go
24 lines
703 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pullCmd = &cobra.Command{
|
|
Use: "pull [OPTIONS] NAME[:TAG|@DIGEST]",
|
|
Short: "Download an image from a registry",
|
|
GroupID: "common",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(pullCmd).Standalone()
|
|
|
|
pullCmd.Flags().BoolP("all-tags", "a", false, "Download all tagged images in the repository")
|
|
pullCmd.Flags().Bool("disable-content-trust", true, "Skip image verification")
|
|
pullCmd.Flags().String("platform", "", "Set platform if server is multi-platform capable")
|
|
pullCmd.Flags().BoolP("quiet", "q", false, "Suppress verbose output")
|
|
rootCmd.AddCommand(pullCmd)
|
|
}
|