cmdutil

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 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

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
	// APIVersion is the API generation this invocation talks to. It is resolved
	// once, in root.CmdRoot, before the command tree is built.
	APIVersion apiversion.Version
	Flags
}

func (*Factory) GetActiveProfile

func (f *Factory) GetActiveProfile() string

GetActiveProfile returns the active profile name from config, defaulting to "default" if empty

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