fixes #8, -out ./foobar
This commit is contained in:
parent
de7931acda
commit
6ad0bb6ed9
@ -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"`
|
||||
}
|
||||
|
||||
|
5
main.go
5
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user