cli

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "v0.0.0-dev"
	BuildDate = "now"
	Commit    = "commit"
)

Functions

func Exact added in v0.2.0

func Exact(num int) cobra.PositionalArgs

func NoArgs added in v0.2.0

func NoArgs(cmd *cobra.Command, args []string) error

Types

type Context

type Context struct {
	Stdout io.Writer
	Stderr io.Writer

	Client *api.Client

	APIServer   string
	AccessToken string
	Auth        string
	AskAuth     bool
	Path        string
}

func NewContext

func NewContext(out io.Writer, err io.Writer) *Context

func (*Context) AddFlags

func (c *Context) AddFlags(flags *pflag.FlagSet)

func (*Context) SetupClient

func (c *Context) SetupClient() error

Jump to

Keyboard shortcuts

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