cmd

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 79 Imported by: 74 modules, 56 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

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