Skip to content

Commit

Permalink
add some more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 16, 2024
1 parent 6e8cf7d commit f7425f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion init/config/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
generated
docker-compose.yml
unpackerr.conf.example
unpackerr.conf.example
config
2 changes: 1 addition & 1 deletion init/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and a suite of docusaurus-markdown files to create the official

The config file is generated every time `go generate` runs. This happens during the build, so the
config file compiled into the application is always up to date. The repo needs to be updated manually
when the definition file changes. Just run `go generate` before committing.
when the definition file changes. Just run `go generate ./...` before committing.

### Compose Service

Expand Down
6 changes: 3 additions & 3 deletions init/config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ func main() {

for _, builder := range flags.Type {
switch builder {
case "docs":
case "doc", "docs", "documentation", "docusaurus":
log.Println("Building Docusaurus")
printDocusaurus(config, flags.Docs)
case "config":
case "conf", "config":
log.Println("Building Config File")
printConfFile(config, flags.Config)
case "compose":
case "docker", "compose", "yml":
log.Println("Building Docker Compose")
createCompose(config, flags.Compose)
}
Expand Down

0 comments on commit f7425f4

Please sign in to comment.