mirror of
https://github.com/rancher/os.git
synced 2025-06-22 04:57:04 +00:00
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
10 lines
121 B
Go
10 lines
121 B
Go
// +build linux
|
|
|
|
package util
|
|
|
|
import "github.com/kless/term"
|
|
|
|
func IsRunningInTty() bool {
|
|
return term.IsTerminal(1)
|
|
}
|