We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a2a502 commit f544626Copy full SHA for f544626
commands/root.go
@@ -37,7 +37,10 @@ var root = &cobra.Command{
37
Long: "A full-featured license guard to check and fix license headers and dependencies' licenses",
38
SilenceUsage: true,
39
SilenceErrors: true,
40
- PersistentPreRunE: func(_ *cobra.Command, _ []string) error {
+ PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
41
+ if cmd.Name() == "__complete" || (cmd.Parent() != nil && cmd.Parent().Name() == "completion") {
42
+ return nil
43
+ }
44
level, err := logrus.ParseLevel(verbosity)
45
if err != nil {
46
return err
0 commit comments