cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitOK        = 0
	ExitCmdError  = 1
	ExitConnError = 2
	ExitConfError = 3
	ExitReadOnly  = 4
)

Exit codes.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func SetVersionInfo

func SetVersionInfo(version, commit, date string)

SetVersionInfo sets the version information from ldflags.

Types

type App

type App struct {
	Config    *config.Config
	CfgPath   string
	Inventory *device.Inventory
	Creds     credential.Store
	Sessions  *session.Store
	OutFormat output.Format
	Timeout   time.Duration
	Verbose   bool
	NoColor   bool
	ReadOnly  bool
	RawJSON   bool
}

App holds shared dependencies injected into all commands.

Jump to

Keyboard shortcuts

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