mirror of
https://github.com/onyx-and-iris/exclude.git
synced 2026-03-30 15:09:10 +00:00
also skip for help (if called as command and not flag)
This commit is contained in:
parent
92e84ca582
commit
bfa3314ad3
@ -28,7 +28,7 @@ It allows you to add, list, and delete patterns from the exclude file easily.
|
||||
This tool is particularly useful for developers who want to keep their repository clean
|
||||
by excluding certain files or directories from version control.`,
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
if cmd.Name() == "completion" {
|
||||
if cmd.Name() == "completion" || cmd.Name() == "help" {
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ by excluding certain files or directories from version control.`,
|
||||
return nil
|
||||
},
|
||||
PersistentPostRunE: func(cmd *cobra.Command, args []string) error {
|
||||
if cmd.Name() == "completion" {
|
||||
if cmd.Name() == "completion" || cmd.Name() == "help" {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user