diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2020-05-21 22:14:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-21 22:14:10 -0400 |
| commit | 8a4530400a5f0aaec4f12dcd10cc1ea34b176894 (patch) | |
| tree | e373b2a70045db608777cfd2accae6a4c36ec77d /gomplate.go | |
| parent | cea6c6ec234198ece9155077672193229d5093b7 (diff) | |
| parent | d954aa2edae91009fcc0b0eea5e622958a8d8b67 (diff) | |
Merge pull request #853 from hairyhenderson/deprecate-legacy-config
Deprecate legacy config struct
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() |
