From 1c23b4f975dfb5244903c93e70aa7756d8d5be3d Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 29 Mar 2026 23:20:51 +0100 Subject: [PATCH] fix command path --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 35922ba..ab73214 100644 --- a/main.go +++ b/main.go @@ -25,8 +25,8 @@ var rootCmd = &cobra.Command{ It allows users to easily create and manage .gitignore files for various programming languages and frameworks. You may also list available templates and generate .gitignore files based on those templates.`, PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { - if strings.HasPrefix(cmd.CommandPath(), "exclude completion") || - strings.HasPrefix(cmd.CommandPath(), "exclude help") { + if strings.HasPrefix(cmd.CommandPath(), "gogn completion") || + strings.HasPrefix(cmd.CommandPath(), "gogn help") { return nil }