Documentation
¶
Index ¶
- func Alert(name string, str ...interface{})
- func Confirm(yes string, defaultValue string) bool
- func CopyFile(src, dst string) error
- func Debug(str ...interface{})
- func Error(s string) error
- func Errorf(format string, args ...interface{}) error
- func Exec(cmdString string, env map[string]string) ([]byte, error)
- func ExecCmd(cmdString string, env map[string]string, verbose bool) error
- func ExecNoOutput(cmdString string) error
- func GetOption(op []Option, key string) string
- func GetPrintRow(res any, activeName string, printValue interface{}, prefix ...bool) string
- func JsonConversion(from any, to any) error
- func Log(str ...interface{})
- func Logf(format string, str ...interface{})
- func MultiLine(s string, length int) string
- func NewE(err error, s ...string) error
- func Notify(name string, str ...interface{})
- func OpenUrl(url string) error
- func ParseBoolFlag(cmd *cobra.Command, flag string) bool
- func ParseIntFlag(cmd *cobra.Command, flag string) int
- func ParseKlFile(cmd *cobra.Command) string
- func ParseStringFlag(cmd *cobra.Command, flag string) string
- func PrintError(err error)
- func Printf(format string, str ...interface{})
- func Println(str ...interface{})
- func Ptr[T any](v T) *T
- func RemoveFromArray(target string, arr []string) []string
- func TrimePref(s string, length int) string
- func Truncate(str string, length int) string
- func Warn(str ...interface{})
- func Warnf(format string, str ...interface{})
- func WinSudoExec(cmdString string, env map[string]string) ([]byte, error)
- func WithKlFile(cmd *cobra.Command)
- func WithOutputVariant(cmd *cobra.Command)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecNoOutput ¶ added in v1.1.0
func GetPrintRow ¶
func JsonConversion ¶
func ParseKlFile ¶
func PrintError ¶
func PrintError(err error)
func RemoveFromArray ¶
func WithKlFile ¶
func WithOutputVariant ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.