diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-07-20 16:40:00 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-07-20 16:40:00 +0530 |
| commit | d5f0d97b16d91cb9aa6a15c7d524f32cc51ee280 (patch) | |
| tree | 68113345acb63a411c849c3c1cd1baa7e9fafb0b /cmd/root.go | |
| parent | 39fd4acbd3cb9a66d87d6ab00f563e37528d338c (diff) | |
added . as alternate config file pathv1.7.2
Diffstat (limited to 'cmd/root.go')
| -rw-r--r-- | cmd/root.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/root.go b/cmd/root.go index 8ecd915..936f886 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -27,9 +27,12 @@ import ( var rootCmd = &cobra.Command{ Use: "guestbook", - Version: "v1.7.1", + Version: "v1.7.2", Short: "Standalone guestbook server for static websites", - Long: "Standalone guestbook server for static websites", + Long: "guestbook - Standalone guestbook server for static websites\n" + + "Copyright (C) 2025-2026 Vidhu Kant Sharma <vidhukant@vidhukant.com>\n" + + "This program comes with ABSOLUTELY NO WARRANTY; This is free software,\n" + + "and you are welcome to redistribute it under certain conditions", } var defaultGuestbook string = "my_guestbook" @@ -44,6 +47,7 @@ func Execute() { func init() { viper.SetConfigName("guestbook") viper.AddConfigPath("/etc") + viper.AddConfigPath(".") if err := viper.ReadInConfig(); err != nil { log.Fatal(err) |