mirror of
https://github.com/89luca89/distrobox.git
synced 2026-11-02 20:30:16 -06:00
fix: forbidigo on completion stdout writes
This commit is contained in:
1 parent
8d96cce479
commit
c7478fdf5f
1 file changed
+3
-3
@@ -21,9 +21,9 @@ func flagCompleter(_ context.Context, c *cli.Command) {
|
||||
// VisibleCommands skips help and any Hidden subcommands, matching
|
||||
// what the user would see in `--help` output.
|
||||
for _, sub := range c.VisibleCommands() {
|
||||
fmt.Println(sub.Name)
|
||||
fmt.Println(sub.Name) //nolint:forbidigo // completion output by design
|
||||
for _, alias := range sub.Aliases {
|
||||
fmt.Println(alias)
|
||||
fmt.Println(alias) //nolint:forbidigo // completion output by design
|
||||
}
|
||||
}
|
||||
// VisibleFlags skips Hidden flags (e.g. --container-manager,
|
||||
@@ -38,7 +38,7 @@ func flagCompleter(_ context.Context, c *cli.Command) {
|
||||
continue
|
||||
}
|
||||
seen[name] = struct{}{}
|
||||
fmt.Println("--" + name)
|
||||
fmt.Println("--" + name) //nolint:forbidigo // completion output by design
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user