2021-10-13 00:05:29 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
type angular struct {
|
|
|
|
language *language
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *angular) string() string {
|
|
|
|
return a.language.string()
|
|
|
|
}
|
|
|
|
|
2021-11-26 01:37:33 -08:00
|
|
|
func (a *angular) init(props properties, env environmentInfo) {
|
2021-10-13 00:05:29 -07:00
|
|
|
a.language = &language{
|
|
|
|
env: env,
|
|
|
|
props: props,
|
|
|
|
extensions: []string{"angular.json"},
|
|
|
|
commands: []*cmd{
|
|
|
|
{
|
|
|
|
executable: "ng",
|
|
|
|
args: []string{"--version"},
|
|
|
|
regex: `Angular CLI: (?:(?P<version>((?P<major>[0-9]+).(?P<minor>[0-9]+).(?P<patch>[0-9]+))))`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
versionURLTemplate: "[%s](https://github.com/angular/angular/releases/tag/%s.%s.%s)",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *angular) enabled() bool {
|
|
|
|
return a.language.enabled()
|
|
|
|
}
|