From 3cd7c3c025ef830b120057a872b16ecc975c2b62 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 20 Jul 2026 16:44:17 +0530 Subject: removed default completion command --- cmd/root.go | 4 +++- cmd/serve.go | 2 +- main.go | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 936f886..9a2a122 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -27,7 +27,7 @@ import ( var rootCmd = &cobra.Command{ Use: "guestbook", - Version: "v1.7.2", + Version: "v1.7.3", Short: "Standalone guestbook server for static websites", Long: "guestbook - Standalone guestbook server for static websites\n" + "Copyright (C) 2025-2026 Vidhu Kant Sharma \n" + @@ -56,4 +56,6 @@ func init() { if viper.IsSet("default_guestbook") { defaultGuestbook = viper.GetString("default_guestbook") } + + rootCmd.CompletionOptions.DisableDefaultCmd = true } diff --git a/cmd/serve.go b/cmd/serve.go index 89f6680..15684b8 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -1,5 +1,5 @@ /* guestbook - Standalone guestbook server for static websites - * Copyright (C) 2025 Vidhu Kant Sharma + * Copyright (C) 2025-2026 Vidhu Kant Sharma * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/main.go b/main.go index a65d537..ef9cbd7 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* guestbook - Standalone guestbook server for static websites - * Copyright (C) 2025 Vidhu Kant Sharma + * Copyright (C) 2025-2026 Vidhu Kant Sharma * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by -- cgit v1.2.3