cmd

package
v0.0.0-...-16e4299 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

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")
)
View Source
var OutputFormatIds = map[OutputFormat][]string{
	OutputFormatText:  {"text"},
	OutputFormatJSON:  {"json"},
	OutputFormatTable: {"table"},
}

OutputFormatIds maps the enum values to their string representations

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

type GitRepositoryMovedError struct {
	OldURL string
	NewURL string
}

func (*GitRepositoryMovedError) Error

func (e *GitRepositoryMovedError) Error() string

type OutputFormat

type OutputFormat enumflag.Flag

OutputFormat represents the output format type

const (
	OutputFormatText OutputFormat = iota
	OutputFormatJSON
	OutputFormatTable
)

Output format constants

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
	BuiltBy string
}

A VersionInfo contains a version.

Jump to

Keyboard shortcuts

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