github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/pkg/client/logging/rotatingfile_unix.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package logging 5 6 import ( 7 "time" 8 9 "golang.org/x/term" 10 ) 11 12 // restoreCTimeAfterRename is a noop on unixes since the renamed file retains the creation time of the source. 13 func restoreCTimeAfterRename(_ string, _ time.Time) error { 14 return nil 15 } 16 17 // IsTerminal returns whether the given file descriptor is a terminal. 18 var IsTerminal = term.IsTerminal //nolint:gochecknoglobals // os specific func replacement