cmd

package
v0.0.0-...-8a60eec Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

func RunParallelAndCollectErrors(fns []func() error, limit int) []error

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.

Jump to

Keyboard shortcuts

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