diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-09-24 08:43:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-24 08:43:39 -0400 |
| commit | f7b09960832cc8429358cf891e1eab2fe46f746e (patch) | |
| tree | 6c802f4eeee778bb58d9ee7f6fb77ee25b5b8ff3 /cmd | |
| parent | 053dfa32ee1e98ce79cb125d6606e8436e6abb40 (diff) | |
| parent | 5b1b0687b54de50c89e9783d9f97b14533a442b0 (diff) | |
Merge pull request #403 from laher/additional-templates
new arg --templates for parsing additional templates
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gomplate/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/gomplate/main.go b/cmd/gomplate/main.go index 18a8c452..c569256e 100644 --- a/cmd/gomplate/main.go +++ b/cmd/gomplate/main.go @@ -116,6 +116,7 @@ func initFlags(command *cobra.Command) { command.Flags().StringArrayVar(&opts.ExcludeGlob, "exclude", []string{}, "glob of files to not parse") command.Flags().StringArrayVarP(&opts.OutputFiles, "out", "o", []string{"-"}, "output `file` name. Omit to use standard output.") + command.Flags().StringArrayVar(&opts.AdditionalTemplates, "template", []string{}, "Additional template file(s)") command.Flags().StringVar(&opts.OutputDir, "output-dir", ".", "`directory` to store the processed templates. Only used for --input-dir") command.Flags().StringVar(&opts.OutMode, "chmod", "", "set the mode for output file(s). Omit to inherit from input file(s)") |
