Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseFlags ¶
func MustParseFlags(opts interface{})
MustParseFlags parses the given application options from command line arguments.
func RunParallelAndCollectErrors ¶
RunParallelAndCollectErrors runs the given list of functions in parallel with the given parallel limits and returns the errors. this is is similar to https://pkg.go.dev/golang.org/x/sync/errgroup#Group.Wait, but returns all of the encountered errors instead of just one. Note: Beware of https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables
Types ¶
type LoggingOpts ¶
type LoggingOpts struct {
Verbose []bool `short:"v" long:"verbose" description:"Show verbose debug information"`
}
LoggingOpts represents the available logging options for command line tools.
Click to show internal directories.
Click to hide internal directories.