cmd

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncFlagsCmdFunc = cobrautil.SyncViperPreRunE("ZED")
)

Functions

func ContextGet added in v0.16.0

func ContextGet(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

func GetEnum added in v0.16.0

func GetEnum[E constraints.Integer](cmd *cobra.Command, name string, mapping map[string]E) (E, error)

GetEnum is a helper for getting an enum value from a string cobra flag.

func Run

func Run()

Types

type ConflictStrategy added in v0.16.0

type ConflictStrategy int
const (
	Fail ConflictStrategy = iota
	Skip
	Touch
)

Jump to

Keyboard shortcuts

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