util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaseInsensitiveIndexFunc added in v0.4.6

func CaseInsensitiveIndexFunc(r rune) func(rune) bool

func ContainsUpper

func ContainsUpper(query string) bool

func GetExitStatus added in v0.4.8

func GetExitStatus(err error) (int, bool)

func Homedir

func Homedir() (string, error)

func IsCollectResultsError added in v0.4.0

func IsCollectResultsError(err error) bool

func IsIgnorableError added in v0.4.0

func IsIgnorableError(err error) bool

func IsTty

func IsTty(arg interface{}) bool

IsTty checks if the given fd is a tty

func Shell added in v0.5.0

func Shell(cmd ...string) *exec.Cmd

func StripANSISequence

func StripANSISequence(s string) string

Function who strips ansi sequences

func TtyReady

func TtyReady() error

TtyReady checks if the tty is ready to go

func TtyTerm

func TtyTerm()

TtyTerm restores any state, if necessary

Types

This section is empty.

Jump to

Keyboard shortcuts

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