cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 6 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

	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()

Jump to

Keyboard shortcuts

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