2019-03-13 04:14:30 -07:00
|
|
|
package main
|
|
|
|
|
2022-01-26 01:23:18 -08:00
|
|
|
import "oh-my-posh/environment"
|
|
|
|
|
2019-03-13 04:14:30 -07:00
|
|
|
type root struct {
|
2022-01-01 11:08:08 -08:00
|
|
|
props Properties
|
2022-01-26 01:23:18 -08:00
|
|
|
env environment.Environment
|
2019-03-13 04:14:30 -07:00
|
|
|
}
|
|
|
|
|
2022-01-23 12:37:51 -08:00
|
|
|
func (rt *root) template() string {
|
|
|
|
return "\uF0E7"
|
2019-03-13 04:14:30 -07:00
|
|
|
}
|
|
|
|
|
2022-01-23 12:37:51 -08:00
|
|
|
func (rt *root) enabled() bool {
|
|
|
|
return rt.env.Root()
|
2019-03-13 04:14:30 -07:00
|
|
|
}
|
|
|
|
|
2022-01-26 01:23:18 -08:00
|
|
|
func (rt *root) init(props Properties, env environment.Environment) {
|
2019-03-13 04:14:30 -07:00
|
|
|
rt.props = props
|
|
|
|
rt.env = env
|
|
|
|
}
|