Skip to content

Commit

Permalink
add extra verification on structure tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ufasoli committed Aug 11, 2020
1 parent a59c4ce commit 4d60f90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ By default 'config.yml' is used for the name of the config file, which is create
}

if len(structure) > 0 {

if structure != "subfolder" && structure != "flat" {
log.Fatal(fmt.Sprintf("Invalid value for [structure] received [%v]. Accepted values are [flat|subfolder] "), structure)
}
updateConfig("structure", structure, &ymlConfig)
}

Expand Down

0 comments on commit 4d60f90

Please sign in to comment.