package ui import ( "os" "golang.org/x/term" ) // IsInteractive returns true if stdin is connected to a terminal func IsInteractive() bool { return term.IsTerminal(int(os.Stdin.Fd())) }