Help us shape the future of Go! Take the 2026 Go Developer Survey

cmdwrapper

package
v1.300064.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFlagSet

func CreateFlagSet(command string, flagConfigs map[string]Flag) (*flag.FlagSet, map[string]*string)

func ExecuteSubcommand

func ExecuteSubcommand(command string, flags map[string]*string) error

func HandleSubcommand

func HandleSubcommand(subcommands map[string]map[string]Flag, handlers map[string]func(map[string]*string) error) error

HandleSubcommand processes subcommands with proper flag isolation

Types

type Flag

type Flag struct {
	DefaultValue string
	Description  string
	IsBool       bool
}

Jump to

Keyboard shortcuts

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