Documentation
¶
Index ¶
- Variables
- func ContextGet(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func GetEnum[E constraints.Integer](cmd *cobra.Command, name string, mapping map[string]E) (E, error)
- func InitialiseRootCmd(zl *cobrazerolog.Builder) *cobra.Command
- func Run()
- type ConflictStrategy
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SyncFlagsCmdFunc = cobrautil.SyncViperPreRunE("ZED")
)
Functions ¶
func ContextGet ¶ added in v0.16.0
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 InitialiseRootCmd ¶ added in v0.27.0
func InitialiseRootCmd(zl *cobrazerolog.Builder) *cobra.Command
InitialiseRootCmd This function is utilised to generate docs for zed
Types ¶
type ConflictStrategy ¶ added in v0.16.0
type ConflictStrategy int
const ( Fail ConflictStrategy = iota Skip Touch )
Click to show internal directories.
Click to hide internal directories.