diff options
Diffstat (limited to 'gomplate.go')
| -rw-r--r-- | gomplate.go | 8 |
1 files changed, 5 insertions, 3 deletions
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() |
