mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-07 01:07:26 -08:00
29 lines
524 B
Go
29 lines
524 B
Go
|
package main
|
||
|
|
||
|
type azfunc struct {
|
||
|
language *language
|
||
|
}
|
||
|
|
||
|
func (az *azfunc) string() string {
|
||
|
return az.language.string()
|
||
|
}
|
||
|
|
||
|
func (az *azfunc) init(props *properties, env environmentInfo) {
|
||
|
az.language = &language{
|
||
|
env: env,
|
||
|
props: props,
|
||
|
extensions: []string{"host.json", "local.settings.json"},
|
||
|
commands: []*cmd{
|
||
|
{
|
||
|
executable: "func",
|
||
|
args: []string{"--version"},
|
||
|
regex: `(?P<version>.+)`,
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (az *azfunc) enabled() bool {
|
||
|
return az.language.enabled()
|
||
|
}
|