mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
9875de38d9
resolves #157
25 lines
489 B
Go
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()
|
|
}
|