-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman completion is missing from podman help #14110
Comments
Thanks for reaching out, @IzhakJakov. I don't think we want to "support" this command as it is primarily used in the build system. I wonder why it's listed in the docs at all. @containers/podman-maintainers WDYT? |
There is exactly one reason why I did this. If the command is hidden it will not be displayed in help and also not suggested via shell complation. Since podman completion is not a command that will be run often I decided to hide this. Most users should not care, the package manager will install the completion scripts for you. If we show this, I added it to the docs because I had to document it somehwere and the man page is the best place IMO. |
I think it should be totally hidden, just like some other commands. I don't believe we want users playing with it, so we should hide the fact it exists. |
I disagree. We cannot guarantee that this will be installed via package manager. For example on windows you would need to manually load it into powershell. I think it is good to have this documented. |
Huh? How does a man page about podman completion solve the powershell issue? |
I think the man page causes confusion (as here in the issue). If we want to leave breadcrumbs, we could put an |
It doesn't solve issues. It is about having this documented so users know that this exists. Using ./docs will mean that it will not be shipped (for example in the windows.msi but also linux distros). If you take a look at the page it actually list an option you can use to customize the completion experience. I see no reason why users should not use this command if they wish too. If the goal is to sync the man page with podman --help I would vote for making the command visible. |
Let me rephrase the question: Is If we don't and only use it for packaging, I think it should not have a man page. If we do, we should list in the help message. |
support is a tough word. The question is do we want user to be using it for reasons outside of the ways we use it, and would it be supported. I believe we do not. I believe this is an internal command and should not be documented. |
Why wouldn't we support it? I have no problem with fixing bugs in it. |
If users use it in a way that we don't intend and we want to change the way it works, we could break their functionality. If it is only internal, then we control the API/CLI to do what we want. There are several commands and options that we do not document for this reason. Remember that this stuff roles into RHEL and signs us up for support for years. I don't believe we should expose anything that is not core to the way we want Podman to run. |
I don't know if you guys plan to support this or not but I hope you do as I find completion very useful both for command discovery and time saving. BTW, the instructions in the document above are wrong:
The instructions from
However this is not working either 😞 |
@IzhakJakov if you go to the latest page you will see the the incorrect example has been fixed in the docs. Did you restart your shell? Otherwise the completion will not take effect. |
Confirmed fixed in latest. I will update my link in the description. Thank you!
Yes I did and even tried |
No This is very likely an issue with your shell config. Does other shell completion work for you? |
Yes everything else I am using is working. |
Here is the result of my
|
No this does not work with the script! Just look at the last lines of the script, you need to do this: https://github.com/spf13/cobra/pull/1608/files I have exactly the same generated completion script and it works for me. I know that this also works for other people who are using zsh. I do not use zsh so I am not aware of all the settings you need but there is something which cause it to not work. You can |
Right! I learned something new :) Thank you my source <(podman completion zsh) && compdef _podman podman Not sure why the autoload from |
@IzhakJakov Maybe related: spf13/cobra#1529 Anyway the point of the issue is that completion is not in --help but listed in the docs. I peronally think this is fine but others seem to disagree. I am fine with making the command visible in --help but I strongly disagree in removing the documentation and/or not supporting this command. |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 didn't you merge something for this? |
No I still do not have clear answer. We hide this command in skopeo as well so I see no reason to show it in podman. |
Keep it hidden. It is not supposed to be used by general users. |
I was able to find docs for
podman completion
here but I would expect it to be part of theAvailable Commands
section when usingpodman help
The text was updated successfully, but these errors were encountered: