diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2020-05-21 21:59:33 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2020-05-21 21:59:33 -0400 |
| commit | d954aa2edae91009fcc0b0eea5e622958a8d8b67 (patch) | |
| tree | e373b2a70045db608777cfd2accae6a4c36ec77d /gomplate.go | |
| parent | cea6c6ec234198ece9155077672193229d5093b7 (diff) | |
Deprecate legacy config struct
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
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() |
