1
0
mirror of https://github.com/rancher/os.git synced 2025-06-22 04:57:04 +00:00
os/util/term.go
Ivan Mikushin 338abb758f Reshuffle cloud-config
Read files cloud-config.d in alphanumeric order, then cloud-config.yml
`ros config` writes to cloud-config.yml (and cloud-config.d/private.yml - only private keys)

Add (c *CloudConfig) Save() method, use it to save the changed config

Read and apply metadata as part of LoadConfig()

Simplify ros config export logic
2015-09-30 23:59:22 +05:00

10 lines
121 B
Go

// +build linux
package util
import "github.com/kless/term"
func IsRunningInTty() bool {
return term.IsTerminal(1)
}