Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version specifies the version of the application and cannot be changed by end user. Version string // Env tells end user that what variant (here we use the name of the git branch to make it simple) // of application is he using. Env string // BuildDate of the app. BuildDate string // GoVersion represents golang version used. GoVersion string // Platform is the combination of OS and Architecture for which the binary is built for. Platform string // Revision represents the git revision used to build the current version of app. Revision string )
Functions ¶
Types ¶
type BuildInfo ¶ added in v0.0.2
type BuildInfo struct {
Version string
Revision string
Environment string
BuildDate string
GoVersion string
Platform string
}
BuildInfo represents version of utility.
func GetBuildInfo ¶ added in v0.0.2
func GetBuildInfo() BuildInfo
GetBuildInfo return the version and other build info of the application.
type Config ¶
type Config struct {
URL string `yaml:"url,omitempty"`
CaPath string `yaml:"ca_path,omitempty"`
Auth gocd.Auth `yaml:"auth,omitempty"`
JSON bool `yaml:"-"`
YAML bool `yaml:"-"`
NoColor bool `yaml:"-"`
LogLevel string `yaml:"-"`
FromFile string `yaml:"-"`
// contains filtered or unexported fields
}
Config holds the information of the cli config.
Click to show internal directories.
Click to hide internal directories.