cmdutil

package
v0.0.0-...-80e6674 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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, writer io.Writer) error

Types

type Factory

type Factory struct {
	HttpClient *http.Client
	IOStreams  *iostreams.IOStreams
	Config     config.Config
	logger.Logger
	GlobalFlagAll bool
}

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

Jump to

Keyboard shortcuts

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