summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-12 00:03:56 +0200
committerxengineering <me@xengineering.eu>2024-05-12 00:03:56 +0200
commit938ab103727688b73f2d7b3ef4d9e1b1c85c6628 (patch)
tree76356b9b10efcb4c2c24ba67380c6c2613143abb /main.go
parent907bd7e63f4cf3cb01bc678e09fc5b8962afe750 (diff)
downloadceres-938ab103727688b73f2d7b3ef4d9e1b1c85c6628.tar
ceres-938ab103727688b73f2d7b3ef4d9e1b1c85c6628.tar.zst
ceres-938ab103727688b73f2d7b3ef4d9e1b1c85c6628.zip
Group flag variables in struct
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 6d6467a..38fde52 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,7 @@ import (
func main() {
flag.Parse()
- if printVersion {
+ if flags.version {
fmt.Println(version)
os.Exit(0)
}
@@ -38,7 +38,7 @@ func main() {
defer model.DisconnectDatabase()
model.MigrateDatabase(version)
- if injectExamples {
+ if flags.examples {
model.InjectExampleRecipes()
log.Println("Added example recipes")
}