cli

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 75 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 GetExecRegistry added in v0.3.6

func GetExecRegistry() hostexec.Registry

GetExecRegistry returns the host execution registry for SSH/Docker/TrueNAS dispatch.

func GetSearchRegistry added in v0.3.6

func GetSearchRegistry() *searchrun.Registry

GetSearchRegistry returns the global search registry, initializing it if necessary.

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

type Profiler added in v0.3.6

type Profiler struct {
	// contains filtered or unexported fields
}

Profiler collects system metrics like CPU, memory, and network usage.

func StartProfiler added in v0.3.6

func StartProfiler() *Profiler

StartProfiler initializes and starts collecting system metrics in the background.

func (*Profiler) StopAndPrintReport added in v0.3.6

func (p *Profiler) StopAndPrintReport(targets, steps int, cache *engine.ClientCache)

StopAndPrintReport stops the profiler and prints the collected metrics and SSH cache stats.

Jump to

Keyboard shortcuts

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