summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-03-31 13:52:38 -0400
committerDave Henderson <dhenderson@gmail.com>2019-04-09 19:27:50 -0400
commitac0012f4f6d2cde52490294e1fb262770f95ba9f (patch)
treede763083c0eeebe58ab679f595d4e95214534c84 /config.go
parent32235c3c65d9c5fdc7171077f603b203197088a2 (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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.go b/config.go
index 26f48ee7..def7dabb 100644
--- a/config.go
+++ b/config.go
@@ -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, ", ")
}