ctl

package
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMissingFlagRepo     = Err("missing repo flag")
	ErrMissingFlagRegistry = Err("missing registry flag")
)
View Source
const (
	FlagNameRepo     = "repo"
	FlagNameRegistry = "registry"
)

Variables

This section is empty.

Functions

func Execute

func Execute(cmds ...*cobra.Command)

func RegisterFlags

func RegisterFlags(cmd *cobra.Command)

RegisterFlags registers the flags that are common to all commands.

func Registry

func Registry() string

Registry returns the registry name from the command line. If the registry is not specified, the command will exit with an error.

func Repo

func Repo() string

Repo returns the repository name from the command line. If the repository is not specified, the command will exit with an error.

Types

type Err

type Err string

func Errf

func Errf(str string, a ...any) Err

func (Err) Error

func (e Err) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL