From d5f0d97b16d91cb9aa6a15c7d524f32cc51ee280 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 20 Jul 2026 16:40:00 +0530 Subject: added . as alternate config file path --- cmd/root.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmd/root.go') 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 \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) -- cgit v1.2.3