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"
)
2022-01-26 05:10:18 -08: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
}