-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra output and errors during shell completion #583
Comments
Thanks for reporting this @marckhouzam. Checking it out. |
BTW, some projects explicitly check if processing with the |
@marckhouzam which version of kapp are you using? i believe latest of kapp should not have this problem. |
Version Note that this similar but not the same problem as #447. The |
💯 |
Released as part of v0.53.0 |
What steps did you take:
There is extra output in the shell completion choices and in some cases is even causes errors during shell completion.
What happened:
For bash, notice the error in this particular case (some other bash completions do work):
For zsh, notice the extra output at the end (
:4
,Succeeded
, etc):Also happens for fish shell.
What did you expect:
Shell completion to work as expected, without error or extra output.
Anything else you would like to add:
Shell completion uses the hidden
__complete
command provided by the Cobra project to obtain the shell completion choices.kapp
should not printSucceeded
for that commandstderr
by the__complete
command should not be redirected bykapp
tostdout
(that is the problem for the string outputCompletion ended with directive: ShellCompDirectiveNoFileComp
)This command is added by Cobra when
rootCmd.Execute()
is called, which makes it a little trickier to adjust the behaviour for it.Environment:
kapp --version
): 0.52.0/etc/os-release
): MacOSkubectl version
): N/AVote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: