Documentation
¶
Overview ¶
Package cli implements the honey Cobra commands.
Index ¶
Constants ¶
View Source
const Tagline = "DevOps tool to help find an instance in sea of clouds"
Tagline is the one-line product description (CLI short help).
Variables ¶
This section is empty.
Functions ¶
func BannerText ¶
func BannerText() string
BannerText is tagline + ASCII logo (no version metadata). Used in usage/--help and --version.
func BuildCommit ¶ added in v0.2.7
func BuildCommit() string
BuildCommit returns the git commit string embedded at link time.
func BuildDate ¶ added in v0.2.7
func BuildDate() string
BuildDate returns the build date string embedded at link time.
func BuildVersion ¶ added in v0.2.7
func BuildVersion() string
BuildVersion returns the binary version (for embedded web UI meta).
func InitBuildInfo ¶
func InitBuildInfo(version, commit, date string)
InitBuildInfo sets version strings used by --version and the version command.
func PrintVersion ¶
PrintVersion writes the logo, tagline, and build metadata (for version subcommand).
func VersionTemplate ¶
func VersionTemplate() string
VersionTemplate returns the cobra --version template (uses {{.Version}}).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.