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]+)`,
|
|
|
|
},
|
2021-01-10 03:14:43 -08:00
|
|
|
},
|
2020-11-14 11:04:04 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (j *julia) enabled() bool {
|
|
|
|
return j.language.enabled()
|
|
|
|
}
|