cmdutil

package
v0.0.0-...-6207adf Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAzionApiFlags

func AddAzionApiFlags(cmd *cobra.Command, opts *contracts.ListOptions)

func FlagErrorWrap

func FlagErrorWrap(err error) error

FlagError returns a new FlagError that wraps the specified error.

func UnmarshallJsonFromReader

func UnmarshallJsonFromReader(file io.Reader, object interface{}) error

func WriteDetailsToFile

func WriteDetailsToFile(data []byte, outPath string) error

Types

type Command

type Command interface {
	Execute() error
	InitDefaultHelpCmd()
}

type Factory

type Factory struct {
	HttpClient *http.Client
	IOStreams  *iostreams.IOStreams
	Config     config.Config
	Flags
}

type FlagError

type FlagError struct {
	// contains filtered or unexported fields
}

A *FlagError indicates an error processing command-line flags or other arguments. Such errors cause the application to display the usage message.

func (*FlagError) Error

func (fe *FlagError) Error() string

func (*FlagError) Unwrap

func (fe *FlagError) Unwrap() error

type Flags

type Flags struct {
	logger.Logger
	GlobalFlagAll bool   `json:"-" yaml:"-" toml:"-"`
	Out           string `json:"-" yaml:"-" toml:"-"`
	Format        string `json:"-" yaml:"-" toml:"-"`
	NoColor       bool   `json:"-" yaml:"-" toml:"-"`
}

Jump to

Keyboard shortcuts

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