snakecharmer

package module
v0.0.0-...-c233704 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 19 Imported by: 1

README

snakecharmer

Hypnotize the cobras and vipers ...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(cmd *cobra.Command)

func ExecuteWithConfig

func ExecuteWithConfig(cmd *cobra.Command, configPath, prefix string)

func GenDocs

func GenDocs(newCmdRoot *cobra.Command, hasChildren ...string)

func GenerateFlags

func GenerateFlags(flags *pflag.FlagSet, cfg Config)

func HandleError

func HandleError(f func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string)

func Validate

func Validate(cfg Config) error

Types

type Config

type Config interface {
	PreValidate(validate *validator.Validate)
}

Jump to

Keyboard shortcuts

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