We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22cc25a + 8d544cd commit 71e39b8Copy full SHA for 71e39b8
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