From d954aa2edae91009fcc0b0eea5e622958a8d8b67 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 21 May 2020 21:59:33 -0400 Subject: Deprecate legacy config struct Signed-off-by: Dave Henderson --- gomplate.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gomplate.go') diff --git a/gomplate.go b/gomplate.go index fe59c2ac..62bd02ab 100644 --- a/gomplate.go +++ b/gomplate.go @@ -111,16 +111,18 @@ func parseTemplateArg(templateArg string, ta templateAliases) error { } // RunTemplates - run all gomplate templates specified by the given configuration +// +// Deprecated: use Run instead func RunTemplates(o *Config) error { cfg, err := o.toNewConfig() if err != nil { return err } - return RunTemplatesWithContext(context.Background(), cfg) + return Run(context.Background(), cfg) } -// RunTemplatesWithContext - run all gomplate templates specified by the given configuration -func RunTemplatesWithContext(ctx context.Context, cfg *config.Config) error { +// Run all gomplate templates specified by the given configuration +func Run(ctx context.Context, cfg *config.Config) error { log := zerolog.Ctx(ctx) Metrics = newMetrics() -- cgit v1.2.3