util

package
v1.0.0-ea11 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug = false
	Quiet = false
)

Functions

func FileExists

func FileExists(file string) bool

func Flatten

func Flatten(items []interface{}) ([]string, error)

func GetRandomPort

func GetRandomPort() (int, error)

func PrintlnDebug

func PrintlnDebug(cmd *cobra.Command, msg string)

func PrintlnDebugConfig

func PrintlnDebugConfig(cmd *cobra.Command, prefix string, out interface{})

func PrintlnFailed

func PrintlnFailed(cmd *cobra.Command, msg string)

func PrintlnRunning

func PrintlnRunning(cmd *cobra.Command, msg string)

func PrintlnSuccess

func PrintlnSuccess(cmd *cobra.Command, msg string)

func SetDebug

func SetDebug(b bool)

func SetQuiet

func SetQuiet(b bool)

func StringSliceContains

func StringSliceContains(slice []string, s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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