oh-my-posh/src/segment_text.go

27 lines
393 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
package main
import (
"oh-my-posh/environment"
"oh-my-posh/properties"
)
2019-03-13 04:14:30 -07:00
type text struct {
props properties.Properties
env environment.Environment
2022-01-22 10:46:56 -08:00
Text string
2019-03-13 04:14:30 -07:00
}
func (t *text) template() string {
return "{{ .Text }}"
}
func (t *text) enabled() bool {
return true
2019-03-13 04:14:30 -07:00
}
func (t *text) init(props properties.Properties, env environment.Environment) {
2019-03-13 04:14:30 -07:00
t.props = props
t.env = env
}