cmdwrapper

package
v1.300062.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 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