cli

package
v0.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) int

Execute runs the root command and handles error formatting and exit codes. It accepts a context that should be cancelled on interrupt signals.

func TestNewRootCmd added in v0.6.0

func TestNewRootCmd() *cobra.Command

TestNewRootCmd exposes the root command for integration tests.

func TestPrintUserFriendly

func TestPrintUserFriendly(err error)

TestPrintUserFriendly exposes printUserFriendly for testing

func Version

func Version() string

Version wrapper for tests and other packages referencing cli.Version().

Types

This section is empty.

Directories

Path Synopsis
Package common provides shared utilities for CLI commands.
Package common provides shared utilities for CLI commands.

Jump to

Keyboard shortcuts

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