Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoglevelHandler ¶
func LoglevelHandler(v *string)
LoglevelHandler validates provided value is a known loglevel and sets loglevel accordingly TODO: does this still work with our new logger?
func VarsFileHandler ¶
func VarsFileHandler(v *string)
VarsFileHandler initializes configuration with VarsFile overriding env vars & defaults
func WriteDirHandler ¶
func WriteDirHandler(v *string)
WriteDirHandler changes the root output directory
Types ¶
type BoolFlag ¶
BoolFlag holds the user-provided value for the flag, and the function to be run within executeHandler
type Flag ¶
type Flag interface {
// contains filtered or unexported methods
}
Flag allows for different value types to be handled
type Flags ¶
type Flags struct {
PreParsedFlags []Flag
}
Flags allows for the gathering all flag definitions and executing them together
func (*Flags) ExecuteHandlers ¶
func (flags *Flags) ExecuteHandlers()
ExecuteHandlers executes the logic for any flags that are provided via `./probr (--<FLAG>)`
func (*Flags) NewBoolFlag ¶
NewBoolFlag creates a new flag that accepts bool values
func (*Flags) NewStringFlag ¶
NewStringFlag creates a new flag that accepts string values
type StringFlag ¶
StringFlag holds the user-provided value for the flag, and the function to be run within executeHandler