Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Root is the top-level cobra.Command for semvertagger. Root = &cobra.Command{ Use: commandName, Short: commandName + " is a tool to remotely tag an image if it is the latest version", Run: func(cmd *cobra.Command, _ []string) { _ = cmd.Usage() }, DisableAutoGenTag: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { if verbose { logs.Debug.SetOutput(os.Stderr) } if insecure { options = append(options, semvertagger.Insecure) } cf, err := config.Load(os.Getenv("DOCKER_CONFIG")) if err != nil { logs.Debug.Printf("failed to read config file: %v", err) } else if len(cf.HTTPHeaders) != 0 { options = append(options, semvertagger.WithTransport(&headerTransport{ inner: http.DefaultTransport, httpHeaders: cf.HTTPHeaders, })) } }, } )
Functions ¶
func NewCmdLogin ¶
NewCmdAuthLogin creates a new `crane auth login` command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.