cmd

package
v1.126.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerboseParamName = "verbose"
)

Variables

This section is empty.

Functions

func AddLicensesCommand added in v1.118.2

func AddLicensesCommand(parent *cobra.Command)

func AddVersionCommand added in v1.118.2

func AddVersionCommand(parent *cobra.Command)

func Execute

func Execute()

func ExecuteFromTest added in v1.118.2

func ExecuteFromTest(options *TestInvocationOptions) error

ExecuteFromTest allows for invocation of the CLI from a test

func RunLicensesCommand added in v1.118.2

func RunLicensesCommand(ctx context.Context, opts VersionOptions) error

func RunVersionCommand added in v1.118.2

func RunVersionCommand(ctx context.Context, opts VersionOptions) error

Types

type LicenseOptions added in v1.118.2

type LicenseOptions struct {
}

type TestInvocationOptions added in v1.118.2

type TestInvocationOptions struct {
	Stdout bytes.Buffer
	Stderr bytes.Buffer
	Stdin  bytes.Buffer
	Args   []string
}

type VersionOptions added in v1.118.2

type VersionOptions struct {
}

Jump to

Keyboard shortcuts

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