Update generator interface and plugins

This commit is contained in:
David Allen 2024-06-26 13:41:14 -06:00
parent 30c8336ca6
commit e92a883c89
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
9 changed files with 85 additions and 5 deletions

View file

@ -13,8 +13,12 @@ func (g *Powerman) GetName() string {
return "powerman"
}
func (g *Powerman) GetGroups() []string {
return []string{"powerman"}
func (g *Powerman) GetVersion() string {
return util.GitCommit()
}
func (g *Powerman) GetDescription() string {
return fmt.Sprintf("Configurator generator plugin for '%s'.", g.GetName())
}
func (g *Powerman) Generate(config *configurator.Config, opts ...util.Option) (map[string][]byte, error) {