mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
19 lines
583 B
Go
19 lines
583 B
Go
package main
|
|
|
|
import (
|
|
"github.com/OpenCHAMI/configurator/pkg/config"
|
|
"github.com/OpenCHAMI/configurator/pkg/generator"
|
|
)
|
|
|
|
type TestGenerator struct{}
|
|
|
|
func (g *TestGenerator) GetName() string { return "test" }
|
|
func (g *TestGenerator) GetVersion() string { return "v1.0.0" }
|
|
func (g *TestGenerator) GetDescription() string {
|
|
return "This is a plugin creating for running tests."
|
|
}
|
|
func (g *TestGenerator) Generate(config *config.Config, params generator.Params) (generator.FileMap, error) {
|
|
return generator.FileMap{"test": []byte("test")}, nil
|
|
}
|
|
|
|
var Generator TestGenerator
|