oh-my-posh/src/segment_text.go

22 lines
284 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
package main
type text struct {
2022-01-22 10:46:56 -08:00
props Properties
env Environment
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
}
2022-01-01 11:09:52 -08:00
func (t *text) init(props Properties, env Environment) {
2019-03-13 04:14:30 -07:00
t.props = props
t.env = env
}