cli

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 28 Imported by: 0

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 Execute

func Execute() error

Execute runs the root command.

func InitBuildInfo

func InitBuildInfo(version, commit, date string)

InitBuildInfo sets version strings used by --version and the version command.

func PrintVersion

func PrintVersion(w io.Writer)

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.

Jump to

Keyboard shortcuts

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