mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Only small amount of required checks is enabled, plan is to enable more linters as issues are fixed in the code.
13 lines
210 B
Go
13 lines
210 B
Go
package console
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"golang.org/x/crypto/ssh/terminal"
|
|
)
|
|
|
|
// RunningOnTerminal checks whether stdout is terminal
|
|
func RunningOnTerminal() bool {
|
|
return terminal.IsTerminal(syscall.Stdout)
|
|
}
|