Describe the bug
Debug output is mistakenly shown in the shell completion choices:
$ ./ketall <TAB>
completion -- generate the autocompletion script for the specified shell
help -- Help about any command
version -- Print the version information
:4 Completion ended with directive: ShellCompDirectiveNoFileComp
The problem is that Cobra's shell completion sends debug printouts to stderr but ketall redirects it to stdout.
To Reproduce
Steps to reproduce the behaviour:
make dev
source <(./ketall completion zsh)
compdef _ketall ketall
./ketall <TAB>
Expected behavior
Debug message should not be shown during shell completion
Describe the bug Debug output is mistakenly shown in the shell completion choices:
The problem is that Cobra's shell completion sends debug printouts to stderr but ketall redirects it to stdout.
To Reproduce Steps to reproduce the behaviour:
Expected behavior Debug message should not be shown during shell completion
I will be posting a PR soon.