fix command path

This commit is contained in:
2026-03-29 23:20:51 +01:00
parent 48172fd99e
commit 7346cda8e2

View File

@@ -25,8 +25,8 @@ var rootCmd = &cobra.Command{
It allows users to easily create and manage .gitignore files for various programming languages and frameworks. 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.`, You may also list available templates and generate .gitignore files based on those templates.`,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
if strings.HasPrefix(cmd.CommandPath(), "exclude completion") || if strings.HasPrefix(cmd.CommandPath(), "gogn completion") ||
strings.HasPrefix(cmd.CommandPath(), "exclude help") { strings.HasPrefix(cmd.CommandPath(), "gogn help") {
return nil return nil
} }