fix command path

This commit is contained in:
2026-03-29 23:20:49 +01:00
parent 5f7a48ee8e
commit c05e2e786a

View File

@@ -25,8 +25,8 @@ It allows users to easily create and manage .gitignore files for various program
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.`,
SilenceUsage: true, SilenceUsage: true,
PersistentPreRun: func(cmd *cobra.Command, _ []string) { PersistentPreRun: func(cmd *cobra.Command, _ []string) {
if strings.HasPrefix(cmd.CommandPath(), "exclude completion") || if strings.HasPrefix(cmd.CommandPath(), "ignr completion") ||
strings.HasPrefix(cmd.CommandPath(), "exclude help") { strings.HasPrefix(cmd.CommandPath(), "ignr help") {
return return
} }