cli

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLang

func DetectLang() string

DetectLang determines the UI language using priority: config.yaml language field > default English.

func NewRoot

func NewRoot(info BuildInfo) *cobra.Command

NewRoot constructs the openbee root cobra command. It assumes i18n has already been loaded by the caller so that translated short/long fields are available.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Commit  string
	Date    string
}

BuildInfo holds build-time metadata injected via -ldflags.

type ExitCodeError

type ExitCodeError struct{ Code int }

ExitCodeError is a sentinel error that carries a non-zero exit code without printing an error message. Commands return this when they need to signal failure cleanly (e.g. "status" when the daemon is not running).

func (*ExitCodeError) Error

func (e *ExitCodeError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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