commands

package
v0.83.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 34 Imported by: 1 module, 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

Overview

Package commands contains the installer subcommands

Index

Constants

View Source
const (
	// AnnotationHumanReadableErrors is the annotation key for commands that should
	// display errors in human-readable format instead of JSON.
	//
	// For example, `setup` is run by humans and its output should be human readable.
	AnnotationHumanReadableErrors = "human-readable-errors"
)
View Source
const (
	// ReturnCodeIsInstalledFalse is the return code when a package is not installed
	ReturnCodeIsInstalledFalse = 10
)

Variables

View Source
var (
	// MockInstaller is used for testing
	MockInstaller installer.Installer
)

Functions

func NewInstallerMock

func NewInstallerMock() installer.Installer

NewInstallerMock returns a new installerMock.

func RootCommands

func RootCommands() []*cobra.Command

RootCommands returns the root commands

func UnprivilegedCommands

func UnprivilegedCommands() []*cobra.Command

UnprivilegedCommands returns the unprivileged commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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