functions

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(name string, str ...interface{})

func Desc

func Desc(str string) string

func ExecCmd

func ExecCmd(cmdString string, env map[string]string, verbose bool) error

func GetOption

func GetOption(op []Option, key string) string

func GetPrintRow

func GetPrintRow(res any, activeName string, printValue interface{}, prefix ...bool) string

func GetPrintRow2

func GetPrintRow2(printValue interface{}, active bool, prefix ...bool) string

func IsInfraFlagAvailable

func IsInfraFlagAvailable(options ...Option) bool

func JsonConversion

func JsonConversion(from any, to any) error

func Log

func Log(str ...interface{})

func Logf

func Logf(format string, str ...interface{})

func Notify

func Notify(name string, str ...interface{})

func OpenUrl

func OpenUrl(url string) error

func ParseBoolFlag

func ParseBoolFlag(cmd *cobra.Command, flag string) bool

func ParseKlFile

func ParseKlFile(cmd *cobra.Command) string

func ParseStringFlag

func ParseStringFlag(cmd *cobra.Command, flag string) string

func PrintError

func PrintError(err error)

func Printf

func Printf(format string, str ...interface{})

func Println

func Println(str ...interface{})

func Warn

func Warn(str ...interface{})

func WithKlFile

func WithKlFile(cmd *cobra.Command)

func WithOutputVariant

func WithOutputVariant(cmd *cobra.Command)

Types

type Option

type Option struct {
	Key   string
	Value string
}

func InfraMarkOption

func InfraMarkOption() Option

func MakeOption

func MakeOption(key, value string) Option

Jump to

Keyboard shortcuts

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