fixes #8, -out ./foobar

This commit is contained in:
Sebastian Frank 2019-03-12 13:24:38 +01:00
parent de7931acda
commit 6ad0bb6ed9
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
2 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,7 @@ type CollectionConfig struct {
DataKey string `yaml:"DataKey"`
Hidden bool `yaml:"Hidden"`
Template string `yaml:"Template"`
Recursive bool `yaml:"Recursive"`
//Recursive bool `yaml:"Recursive"`
} `yaml:"NavTemplate"`
}

View File

@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"os"
"path"
"gitbase.de/apairon/mark2web/config"
"gitbase.de/apairon/mark2web/helper"
@ -48,11 +49,15 @@ func main() {
if inDir == nil || *inDir == "" {
log.Panic("input directory not specified")
}
iDir := path.Clean(*inDir)
inDir = &iDir
log.Infof("input directory: %s", *inDir)
if outDir == nil || *outDir == "" {
log.Panic("output directory not specified")
}
oDir := path.Clean(*outDir)
outDir = &oDir
log.Infof("output directory: %s", *outDir)
if createOutDir != nil && *createOutDir {