Ai
1 Star 0 Fork 0

fanzuquan/oh-my-posh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
segment_text.go 443 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jan De Dobbeleer 提交于 2019-03-13 19:14 +08:00 . feat: initial commit
package main
type text struct {
props *properties
env environmentInfo
}
const (
//TextProperty represents text to write
TextProperty Property = "text"
)
func (t *text) enabled() bool {
return true
}
func (t *text) string() string {
textProperty := t.props.getString(TextProperty, "!!text property not defined!!")
return textProperty
}
func (t *text) init(props *properties, env environmentInfo) {
t.props = props
t.env = env
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fanzuquan/oh-my-posh.git
git@gitee.com:fanzuquan/oh-my-posh.git
fanzuquan
oh-my-posh
oh-my-posh
v3.15.0

搜索帮助