oh-my-posh/segment_julia.go
Jan De Dobbeleer 9875de38d9 feat: julia segment
resolves #157
2020-11-15 07:43:23 +01:00

25 lines
489 B
Go

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{
env: env,
props: props,
commands: []string{"julia"},
versionParam: "--version",
extensions: []string{"*.jl"},
versionRegex: `julia version (?P<version>[0-9]+.[0-9]+.[0-9]+)`,
}
}
func (j *julia) enabled() bool {
return j.language.enabled()
}