cmd

package
v0.2.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 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

Jump to

Keyboard shortcuts

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