Skip to content

Commit

Permalink
Merge pull request #130 from TimeleapLabs/fix-config-flag
Browse files Browse the repository at this point in the history
🐛 fix(flags): make config flag unrequired >>> ⏰ 2m
  • Loading branch information
logicalangel authored Apr 23, 2024
2 parents 19830ed + c2ac0a7 commit 9ffe4e7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,4 @@ func init() {
root.PersistentFlags().StringVarP(&config.App.System.ConfigPath, "config", "c", "./conf.yaml", "Config file")
root.PersistentFlags().StringVarP(&config.App.System.SecretsPath, "secrets", "s", "./secrets.yaml", "Secrets file")
root.PersistentFlags().StringVarP(&config.App.System.ContextPath, "context", "x", "./context", "Context DB")

err := root.MarkPersistentFlagRequired("config")
if err != nil {
panic(err)
}

err = root.MarkPersistentFlagFilename("config", "yaml")
if err != nil {
panic(err)
}
}

0 comments on commit 9ffe4e7

Please sign in to comment.