Documentation ¶
Index ¶
- func Anyhow(errs ...interface{}) error
- func EnsureDir(path string) error
- func EnsureFile(path string) error
- func Error(msg interface{}, args ...interface{})
- func FormatArch(arch string) (string, error)
- func GetDefaultArch() (string, error)
- func GitExists() bool
- func IsAtty() bool
- func Must[T any](val T, err error) T
- func MustB[T any](val T, err error) bool
- func ParseColorLevel(lvl string) bool
- func PathExists(path string) bool
- func RunGit(suppress bool, args ...string) (int, error)
- func SetColor(lvl string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Anyhow ¶
func Anyhow(errs ...interface{}) error
concat multiple strings/errors into a single error
func FormatArch ¶
format architecture string to app friendly one
func ParseColorLevel ¶
wether to allow color or not based on - valid levels: always, auto, never
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.