podman/cmd
Paul Holzinger e5745139a7
cli commands: better error for unsupported commands
When you run podman-remote unsahre for example you currently get:
Error: unrecognized command `podman-remote unshare`

This is because we do not add the command to the cobra tree when we run
in remote mode. However this is a bad user experience since it is not
clear that the command is only supported for local podman. Users are
left wondering why this does not work and could think the documentation
is wrong.

To fix it we add a clear error message:
Error: cannot use command "podman-remote unshare" with the remote podman client

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-03-31 16:20:18 +02:00
..
podman cli commands: better error for unsupported commands 2022-03-31 16:20:18 +02:00
podman-mac-helper Run codespell to cleanup typos 2022-03-25 15:34:41 -04:00
rootlessport fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
winpath Add podman rm --depend 2022-01-11 14:33:54 -05:00