cobra

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlagAnnotation

func AddFlagAnnotation(cmd *cobra.Command, flagName string, key string, value string) error

func GetFlagsForAnnotation

func GetFlagsForAnnotation(cmd *cobra.Command, annotation string) string

func GetFlagsWithoutAnnotations

func GetFlagsWithoutAnnotations(cmd *cobra.Command, annotations ...string) string

func MaxFlagNameLength

func MaxFlagNameLength(cmd *cobra.Command) int

func SetHelpTemplate

func SetHelpTemplate(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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