mirror of
https://github.com/onyx-and-iris/gogn.git
synced 2026-03-30 05:59:17 +00:00
fix command path
This commit is contained in:
parent
48172fd99e
commit
1c23b4f975
4
main.go
4
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.
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user