Add flag for only checking/creating the config file
This commit is contained in:
parent
0e036b152b
commit
ad68e97eaf
2 changed files with 11 additions and 0 deletions
6
main.go
6
main.go
|
@ -39,6 +39,12 @@ func main() {
|
|||
Str("config-file", *flagConfigFile).
|
||||
Msg("Failed to read config and couldn't write default")
|
||||
}
|
||||
|
||||
// Request to only check config
|
||||
if *flagConfigOnly {
|
||||
return
|
||||
}
|
||||
|
||||
storageCache, err := cache.NewCache(
|
||||
config.GlobalConfig.Storage.MaxInMemoryCacheSize,
|
||||
config.GlobalConfig.Storage.RedisUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue