-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Don't setup the Image/ContainerEngine when calling a cmd with subcmds #7564
Don't setup the Image/ContainerEngine when calling a cmd with subcmds #7564
Conversation
There is no need to setup the image and container engine when calling a command with subcommands since we only print a usage message. e.g `podman`,`podman container` This also allows the remote client to show the usage message on these commands without a running endpoint. I added a test for this. Signed-off-by: Paul Holzinger <[email protected]>
$ ./bin/podman-remote -
Error: missing command 'podman-remote COMMAND'
Try 'podman-remote --help' for more information.
$ ./bin/podman --remote -
Error: missing command 'podman COMMAND'
Try 'podman --help' for more information. UPDATE: never mind. Turns out I had a stray server, sorry! |
@edsantiago Do you have the podman service running? |
Yes, see update. Sorry! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
1 similar comment
LGTM |
/lgtm |
There is no need to setup the image and container engine when calling
a command with subcommands since we only print a usage message.
e.g
podman
,podman container
This also allows the remote client to show the usage message on
these commands without a running endpoint. I added a test for this.
Run without an endpoint with this commit:
Before: