Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHaveLatestVersion is returned when you are already on the latest version. ErrHaveLatestVersion = errors.New("you already have the latest version") // ErrNewerVersion is returned when you are on a newer version that the latest release. ErrNewerVersion = errors.New("current version is newer than the latest release") // ErrIgnoredDev is returned when your local version is development and you have not used the --dev flag. ErrIgnoredDev = errors.New("ignoring update for development version") )
Functions ¶
func ChangeDefaultCommand ¶ added in v1.0.1
ChangeDefaultCommand checks to see if the current os.Args target a valid subcommand. If they do not they are adjusted to target the given command. If any of the blacklisted args are set in os.Args, no action is taken.
func NewRootCMD ¶ added in v1.0.0
NewRootCMD returns the root command for use with cobra.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.