You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed the problem both in my failing unit tests as well as on the CLI itself. For testing and as an example I use my https://github.com/thediveo/enumflag/tree/master/test/enumflag-testing. Building enumflag-test and then in the CLI first entering the binary name and then TAB-TAB yields:
/tmp/test $ ./enumflag-testing
:4
Completion ended with directive
completion (Generate the autocompletion script for the specified shell)
help (Help about any command)
test
I see this same problem also in an Ubuntu 24.04.1LTS-based devcontainer with bash "version 5.2.21(1)-release (x86_64-pc-linux-gnu)".
This is because you use SetOutput() which is deprecated. This function redirects both the output and error streams, and the completion logic prints stuff to the error stream, which is why you are seeing it on your screen.
go.mod
:github.com/spf13/cobra v1.8.1
Noticed the problem both in my failing unit tests as well as on the CLI itself. For testing and as an example I use my https://github.com/thediveo/enumflag/tree/master/test/enumflag-testing. Building
enumflag-test
and then in the CLI first entering the binary name and then TAB-TAB yields:I see this same problem also in an Ubuntu 24.04.1LTS-based devcontainer with bash "version 5.2.21(1)-release (x86_64-pc-linux-gnu)".
Maybe #2213 might be related?
The text was updated successfully, but these errors were encountered: