cli

package
v0.0.0-...-6221d3e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 32 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 Main

func Main(args []string, f *cmdutil.Factory) int

func NewRootCmd

func NewRootCmd(f *cmdutil.Factory) *cobra.Command

NewRootCmd returns the invox command tree for f, the one Main runs. The docs generator walks it.

Types

type SignalError

type SignalError struct {
	Signal syscall.Signal
}

SignalError is the cancel cause when a signal ended the run. exitCode maps it to 128 plus the signal number.

func (*SignalError) Error

func (e *SignalError) Error() string

Directories

Path Synopsis
Package cmdutil holds what every command shares: the Factory, and the error types commands return so that cli.Main can decide, in one place, what to print and which exit code to use.
Package cmdutil holds what every command shares: the Factory, and the error types commands return so that cli.Main can decide, in one place, what to print and which exit code to use.
Package helptext holds the help content that several commands and help topics share: the reference tables for the support files and templates, their YAML examples, the topic pages, and the Default lookup lines.
Package helptext holds the help content that several commands and help topics share: the reference tables for the support files and templates, their YAML examples, the topic pages, and the Default lookup lines.

Jump to

Keyboard shortcuts

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