diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-03-31 13:52:38 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2019-04-09 19:27:50 -0400 |
| commit | ac0012f4f6d2cde52490294e1fb262770f95ba9f (patch) | |
| tree | de763083c0eeebe58ab679f595d4e95214534c84 /config.go | |
| parent | 32235c3c65d9c5fdc7171077f603b203197088a2 (diff) | |
Adding --output-map argument for templating output paths
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,6 +15,7 @@ type Config struct { ExcludeGlob []string OutputFiles []string OutputDir string + OutputMap string OutMode string DataSources []string @@ -81,6 +82,8 @@ func (o *Config) String() string { c += "\noutput: " if o.InputDir != "" && o.OutputDir != "." { c += o.OutputDir + } else if o.OutputMap != "" { + c += o.OutputMap } else { c += strings.Join(o.OutputFiles, ", ") } |
