Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 78 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCommand = Command(nil, "OPA")

Backwards compatibility definition. Newer code should use Command.

Functions

func Command added in v1.7.0

func Command(rootCommand *cobra.Command, brand string) *cobra.Command

func UserAgent added in v1.7.0

func UserAgent(agent string)

UserAgent lets you override the OPA UA sent with all the HTTP requests. It's another vanity thing -- if you build your own version of OPA, you may want to adjust this. NOTE(sr): Caution: Please consider this experimental, I have the hunch that we'll find a better way to make this adjustment in the future.

Types

type ExitError added in v1.7.0

type ExitError struct {
	Exit int
	// contains filtered or unexported fields
}

func (*ExitError) Error added in v1.7.0

func (c *ExitError) Error() string

func (*ExitError) Unwrap added in v1.7.0

func (c *ExitError) Unwrap() error

Directories

Path Synopsis
internal
env

Jump to

Keyboard shortcuts

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