cmdutil

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(c config.Config) bool

func IsAuthCheckEnabled

func IsAuthCheckEnabled(cmd *cobra.Command) bool

Types

type ErrorWriter

type ErrorWriter struct {
	Out io.Writer
}

ErrorWriter is an io.Writer interface which prints to os.Stderr in red

func (*ErrorWriter) Write

func (w *ErrorWriter) Write(s []byte) (int, error)

type Factory

type Factory struct {
	IOStreams *iostreams.IOStreams

	ApiClient func() (*api.Client, error)
	Config    func() (config.Config, error)
}

Jump to

Keyboard shortcuts

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