cmd

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistentPostRunE

func PersistentPostRunE(persistentPostRunE func(*cobra.Command, []string) error) func(*cobra.Command, []string) error

func PersistentPreRunE

func PersistentPreRunE[T any](cfgFn func() (T, error), persistentPreRunE func(context.Context, T, *cobra.Command, []string) error) func(*cobra.Command, []string) error

Types

type ContextKey

type ContextKey string
const (
	ConfigContextKey ContextKey = "go-utils-cmd-config-key"
	CancelContextKey ContextKey = "go-utils-cmd-cancel-key"
)

Jump to

Keyboard shortcuts

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