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

cmd

package
v0.1.0 Latest Latest
Warning

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

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

Types

type GlobalOptions

type GlobalOptions struct {
	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

Jump to

Keyboard shortcuts

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