cli

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantBePresented = errors.New("can't be presented")

ErrCantBePresented is returned if data can't be presented.

View Source
var ErrSendTargetValidationFailed = errors.New("send target validation failed")

ErrSendTargetValidationFailed is returned if the send target can't pass a validation.

View Source
var ErrUnsupportedOutputMode = errors.New("unsupported mode")

ErrUnsupportedOutputMode is returned if user passed a unsupported output mode.

View Source
var Options []commandline.Option //nolint:gochecknoglobals

Options to override the commandline for testing purposes.

Functions

func EffectiveOptions added in v0.44.0

func EffectiveOptions() []commandline.Option

EffectiveOptions are the options used for command run.

TODO: Consider migrating to Cobra' error handler, see: https://github.com/spf13/cobra/pull/2199

Types

type App

type App struct {
	cli.Params
}

func (*App) Command

func (a *App) Command() *cobra.Command

Jump to

Keyboard shortcuts

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