2021-04-02 10:36:50 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
type azfunc struct {
|
|
|
|
language *language
|
|
|
|
}
|
|
|
|
|
|
|
|
func (az *azfunc) string() string {
|
|
|
|
return az.language.string()
|
|
|
|
}
|
|
|
|
|
2021-11-26 01:37:33 -08:00
|
|
|
func (az *azfunc) init(props properties, env environmentInfo) {
|
2021-04-02 10:36:50 -07:00
|
|
|
az.language = &language{
|
|
|
|
env: env,
|
|
|
|
props: props,
|
2021-10-24 09:42:01 -07:00
|
|
|
extensions: []string{"host.json", "local.settings.json", "function.json"},
|
2021-04-02 10:36:50 -07:00
|
|
|
commands: []*cmd{
|
|
|
|
{
|
|
|
|
executable: "func",
|
|
|
|
args: []string{"--version"},
|
2021-10-26 10:50:30 -07:00
|
|
|
regex: `(?P<version>[0-9.]+)`,
|
2021-04-02 10:36:50 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (az *azfunc) enabled() bool {
|
|
|
|
return az.language.enabled()
|
|
|
|
}
|