cobraext

package
v1.3.16 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlag

func AddFlag[T string](cmd *cobra.Command, name, shorthand, value, description string, required bool)

func Execute

func Execute(root *cobra.Command, commanders []CommanderRegister)

func Flag

func Flag[T string](cmd *cobra.Command, name string, result *T) error

func HelpFunc

func HelpFunc(cmd *cobra.Command, args []string)

Types

type CommanderRegister

type CommanderRegister interface {
	RegisterCommander(root *cobra.Command)
}

Jump to

Keyboard shortcuts

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