internalusage

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagGroupAnnotation = "___leodido_structcli_flaggroups"
)

Variables

This section is empty.

Functions

func Groups

func Groups(c *cobra.Command) map[string]*pflag.FlagSet

Groups returns a map of flag groups for the given command.

It organizes flags by their group annotation, with ungrouped flags placed in a default local group.

func Setup

func Setup(c *cobra.Command)

Setup generates and sets a dynamic usage function for the command.

It also groups flags based on the `flaggroup` annotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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