oh-my-posh/src/segment_julia.go

29 lines
519 B
Go
Raw Normal View History

2020-11-14 11:04:04 -08:00
package main
type julia struct {
language *language
}
func (j *julia) string() string {
return j.language.string()
}
func (j *julia) init(props *properties, env environmentInfo) {
j.language = &language{
2021-02-03 10:11:32 -08:00
env: env,
props: props,
extensions: []string{"*.jl"},
commands: []*cmd{
{
executable: "julia",
args: []string{"--version"},
regex: `julia version (?P<version>[0-9]+.[0-9]+.[0-9]+)`,
},
},
2020-11-14 11:04:04 -08:00
}
}
func (j *julia) enabled() bool {
return j.language.enabled()
}