This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
The following commit(s) were added to refs/heads/main by this push:
new 8d544cd fix: completion script corrupted by INFO log message (#259)
8d544cd is described below
commit 8d544cd6d3a66e450a62c07bf400c923e174af33
Author: Jonathan Hult <[email protected]>
AuthorDate: Wed Feb 11 06:24:45 2026 -0600
fix: completion script corrupted by INFO log message (#259)
---
commands/root.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/commands/root.go b/commands/root.go
index ca9d472..e02ff8c 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -37,7 +37,10 @@ var root = &cobra.Command{
Long: "A full-featured license guard to check and fix license
headers and dependencies' licenses",
SilenceUsage: true,
SilenceErrors: true,
- PersistentPreRunE: func(_ *cobra.Command, _ []string) error {
+ PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
+ if cmd.Name() == "__complete" || (cmd.Parent() != nil &&
cmd.Parent().Name() == "completion") {
+ return nil
+ }
level, err := logrus.ParseLevel(verbosity)
if err != nil {
return err