cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package cli defines the chcli command line: flags, subcommands and the wiring between configuration, authentication, transport and the shell.

Index

Constants

View Source
const (
	ExitOK          = 0
	ExitError       = 1   // a statement failed, or another runtime error
	ExitUsage       = 2   // invalid flags or configuration
	ExitAuth        = 3   // authentication failed or a login is required
	ExitConnection  = 4   // the server could not be reached
	ExitInterrupted = 130 // interrupted by Ctrl+C
)

Exit codes.

Variables

This section is empty.

Functions

func Execute

func Execute(build BuildInfo) int

Execute runs the command line and returns the process exit code.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Commit  string
	Date    string
}

BuildInfo identifies the build.

Jump to

Keyboard shortcuts

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