cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWorkerCount int = 10
)

Variables

This section is empty.

Functions

func IntRangeVarP added in v0.5.0

func IntRangeVarP(cmd *cobra.Command, p *int, name, shorthand string, defaultValue int, min, max int, usage string)

func NewCloneCmd added in v0.9.0

func NewCloneCmd(globalOpts *GlobalOptions, runFunc func(*cloneOptions) error) *cobra.Command

func NewEditCmd added in v0.3.0

func NewEditCmd(globalOpts *GlobalOptions, runFunc func(*editOptions) error) *cobra.Command

func NewListCmd

func NewListCmd(globalOpts *GlobalOptions) *cobra.Command

func NewViewCmd

func NewViewCmd(globalOpts *GlobalOptions) *cobra.Command

func ProjectNumberArg added in v0.5.0

func ProjectNumberArg(number *int) cobra.PositionalArgs

func StdinStringVarP added in v0.4.0

func StdinStringVarP(cmd *cobra.Command, stdin io.Reader, p *string, name, shorthand, defaultValue, usage string)

func StringEnumVarP added in v0.5.0

func StringEnumVarP(cmd *cobra.Command, p *string, name, shorthand, defaultValue string, values []string, usage string)

func StringToStringVarP added in v0.5.1

func StringToStringVarP(cmd *cobra.Command, p *map[string]string, name, shorthand string, value map[string]string, usage string)

StringToStringVarP was copied from github.com/spf13/pflag to change the usage text to something more intuitive.

Types

type GlobalOptions

type GlobalOptions struct {
	Console console.Console
	Log     io.Writer

	Repo    repository.Repository
	Verbose bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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