mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
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()
|
||
|
}
|