cliflags

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFlags

func HandleFlags()

HandleFlags executes the logic for any flags that are provided via `./probr (--<FLAG>)`

func HandlePackOption added in v0.5.0

func HandlePackOption()

HandlePackOption will execute the logic necessary for `./probr run <PACK>`

func HandleRequestForRequiredVars added in v0.5.0

func HandleRequestForRequiredVars()

HandleRequestForRequiredVars will execute the logic for `./probr show-requirements (<PACK>)`

Types

type Flag

type Flag struct {
	// exported to avoid conflict with the default `flag` provided in go
	Handler flagHandlerFunc
	Value   interface{}
}

Flag holds the user-provided value for the flag, and the function to be run within executeHandler

Jump to

Keyboard shortcuts

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