util

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrTrue  = "true"
	StrFalse = "false"
)

Variables

View Source
var (
	ErrInvalidValue = errors.New("invalid value")
)

Functions

func AddGroupedCommands added in v0.9.1

func AddGroupedCommands(mainCommand *cobra.Command, group cobra.Group, cmds []*cobra.Command)

func AllComandsHelpFlag added in v0.10.0

func AllComandsHelpFlag(command *cobra.Command)

func GetAvailableEphemeralPort added in v0.2.0

func GetAvailableEphemeralPort(iface string) (int, error)

func GetWorkspaceDir added in v0.2.0

func GetWorkspaceDir() (string, error)

func GetWorkspaceDirAndShort added in v0.10.0

func GetWorkspaceDirAndShort() (string, string, error)

func MakeSpinner added in v0.2.0

func MakeSpinner(suffix string) *spinner.Spinner

func PersistentPreRunChain added in v0.10.0

func PersistentPreRunChain(command *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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