Documentation ¶
Index ¶
Constants ¶
View Source
const SkipAuth = "skipAuthCheck"
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(sessCfg *config.SessionConfig)
func IsAuthCheckEnabled ¶
IsAuthCheckEnabled returns true if the given command or any of its parents requires authentication.
func ResetFlags ¶
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
Click to show internal directories.
Click to hide internal directories.