cmdutil

package
v0.0.0-...-1adbf8b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SkipAuth = "skipAuthCheck"

Variables

This section is empty.

Functions

func Connect

func Connect(sessCfg *config.SessionConfig)

func IsAuthCheckEnabled

func IsAuthCheckEnabled(cmd *cobra.Command) bool

IsAuthCheckEnabled returns true if the given command or any of its parents requires authentication.

func ResetFlags

func ResetFlags(cmd *cobra.Command, _ []string)

ResetFlags visits all local flags and sets them to the default value. Additionally, it resets the "help" flag of the root command.

Types

type Factory

type Factory struct {
	Config        func() config.Config
	SessionConfig func() *config.SessionConfig
}

func NewFactory

func NewFactory(cfg config.Config, sessCfg *config.SessionConfig) *Factory

Jump to

Keyboard shortcuts

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