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

cmd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LintCommand

func LintCommand(globalOpts *GlobalOptions) *cobra.Command

func PrCommand added in v0.4.0

func PrCommand(globalOpts *GlobalOptions) *cobra.Command

func StringEnumVarP

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

func ViewCommand added in v0.3.0

func ViewCommand(globalOpts *GlobalOptions) *cobra.Command

Types

type ColorOptions added in v0.2.0

type ColorOptions struct {
	Comment string
	Error   string
}

type GlobalOptions

type GlobalOptions struct {
	Color   ColorOptions
	Console console.Console
	Log     *log.Logger
	Repo    repository.Repository
	Verbose bool
	// contains filtered or unexported fields
}

func (*GlobalOptions) EnsureRepository

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

func (*GlobalOptions) IsAuthenticated

func (opts *GlobalOptions) IsAuthenticated() error

func (*GlobalOptions) IsColorEnabled added in v0.3.0

func (opts *GlobalOptions) IsColorEnabled() bool

func (*GlobalOptions) RootFS added in v0.4.0

func (opts *GlobalOptions) RootFS() (fs.FS, error)

Jump to

Keyboard shortcuts

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