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

cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 16 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 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

Jump to

Keyboard shortcuts

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