github.com/kubernetes-incubator/kube-aws@v0.16.4/pkg/api/bash_prompt.go (about) 1 package api 2 3 type BashPrompt struct { 4 Enabled bool `yaml:"enabled,omitempty"` 5 IncludePWD bool `yaml:"include-pwd,omitempty"` 6 IncludeHostname bool `yaml:"include-hostname,omitempty"` 7 IncludeUser bool `yaml:"include-user,omitempty"` 8 ClusterColour ShellColour `yaml:"cluster-colour,omitempty"` 9 Divider string `yaml:"divider,omitempty"` 10 DividerColour ShellColour `yaml:"divider-colour,omitempty"` 11 EtcdLabel string `yaml:"etcd-label,omitempty"` 12 EtcdColour ShellColour `yaml:"etcd-colour,omitempty"` 13 ControllerLabel string `yaml:"controller-label,omitempty"` 14 ControllerColour ShellColour `yaml:"controller-colour,omitempty"` 15 WorkerLabel string `yaml:"worker-label,omitempty"` 16 WorkerColour ShellColour `yaml:"worker-colour,omitempty"` 17 RootUserColour ShellColour `yaml:"root-user-colour,omitempty"` 18 NonRootUserColour ShellColour `yaml:"non-root-user-colour,omitempty"` 19 DirectoryColour ShellColour `yaml:"directory-colour,omitempty"` 20 } 21 22 func NewDefaultBashPrompt() BashPrompt { 23 return BashPrompt{ 24 Enabled: true, 25 IncludePWD: true, 26 IncludeHostname: true, 27 IncludeUser: true, 28 ClusterColour: LightCyan, 29 Divider: "|", 30 DividerColour: DefaultColour, 31 EtcdLabel: "etcd", 32 EtcdColour: LightGreen, 33 ControllerLabel: "master", 34 ControllerColour: LightRed, 35 WorkerLabel: "node", 36 WorkerColour: LightBlue, 37 RootUserColour: LightRed, 38 NonRootUserColour: LightGreen, 39 DirectoryColour: LightBlue, 40 } 41 }