utils

package
v0.1.0-test-skip-publi... Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdHelp

func CmdHelp(cmd *cobra.Command, _ []string)

CmdHelp is used to explicitly set the Run function for non-leaf commands to the command help function, so that we can catch invalid commands This is a workaround needed due to the open issue on the Cobra repo: https://github.com/spf13/cobra/issues/706

func Ptr

func Ptr[T any](v T) *T

Ptr Returns the pointer to any type T

func ValidateUUID

func ValidateUUID(value string) error

ValidateUUID validates if the provided string is a valid UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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