cli

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 55 Imported by: 0

Documentation

Overview

Package cli wires the cobra command tree for the ub binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command. It exits the process on failure.

func Run

func Run(args []string, stdout, stderr io.Writer) int

Run executes the CLI with injected streams and returns a process exit code.

func Version

func Version() string

Version returns a human-readable build identifier derived from runtime/debug.ReadBuildInfo. For tagged release builds, Main.Version is the module version (e.g. "v0.1.0"). For builds from a git checkout, Go already encodes a pseudo-version with a "+dirty" suffix when applicable. Only when Main.Version is empty or "(devel)" do we fall back to the VCS revision from Settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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