Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendHelpFunc added in v0.2.0

func AppendHelpFunc(width int, original func(*cobra.Command, []string)) func(*cobra.Command, []string)

func ApplyCmd

func ApplyCmd(globalOpts *GlobalOptions) *cobra.Command

func CloneCmd added in v0.2.0

func CloneCmd(globalOpts *GlobalOptions) *cobra.Command

func ListCmd added in v0.2.0

func ListCmd(globalOpts *GlobalOptions) *cobra.Command

Types

type GlobalOptions

type GlobalOptions struct {
	Console console.Console
	Log     *log.Logger
	Verbose bool

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

func (*GlobalOptions) EnsureRepository added in v0.2.0

func (opts *GlobalOptions) EnsureRepository() (err error)

func (*GlobalOptions) IsAuthenticated added in v0.2.0

func (opts *GlobalOptions) IsAuthenticated() error

Jump to

Keyboard shortcuts

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