From 733c486cb228c4474c0ff91be2dc7cf5abbe2f1c Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Tue, 7 Jan 2025 12:57:29 -0700 Subject: [PATCH] examples: updated test plugin --- examples/plugin/test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/plugin/test.go b/examples/plugin/test.go index f1b4e9b..58aa310 100644 --- a/examples/plugin/test.go +++ b/examples/plugin/test.go @@ -13,7 +13,11 @@ 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 + return generator.ApplyTemplates(generator.Mappings{ + "plugin_name": g.GetName(), + "plugin_version": g.GetVersion(), + "plugin_description": g.GetDescription(), + }, params.Templates) } var Generator TestGenerator