Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExitCodeOK is a 0 exit code. ExitCodeOK = iota // ExitCodeErr is a generic exit code, for all non-special errors. ExitCodeErr )
View Source
const AppName = "fget"
AppName - the name of the application.
Variables ¶
View Source
var ( ErrGitMissingRemoteHeadReference = errors.New("missing remote head reference") ErrGitMissingBranchName = errors.New("missing branch name") ErrGitMissingRemoteHeadBranchName = errors.New("missing remote HEAD branch name") ErrGitRepositoryNotReachable = errors.New("repository not reachable") ErrGitRepositoryDisabled = errors.New("repository is disabled") ErrGitRepositoryProtected = errors.New("repository is protected") )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called my main.main(). It only needs to happen once to the rootCmd.
Types ¶
type GitRepositoryMovedError ¶
func (*GitRepositoryMovedError) Error ¶
func (e *GitRepositoryMovedError) Error() string
type VersionInfo ¶
A VersionInfo contains a version.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.