mirror of
https://github.com/containers/podman.git
synced 2025-12-05 21:32:22 +08:00
fix up a number of misplace commands
* ps now on main command * sign is no longer on main commmand * ls, list no longer are valid main aliases for images * ls, list does work for podman image Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@@ -18,7 +18,7 @@ func getMainCommands() []*cobra.Command {
|
||||
_execCommand,
|
||||
_generateCommand,
|
||||
_playCommand,
|
||||
_psCommand,
|
||||
&_psCommand,
|
||||
_loginCommand,
|
||||
_logoutCommand,
|
||||
_logsCommand,
|
||||
@@ -54,6 +54,10 @@ func getImageSubCommands() []*cobra.Command {
|
||||
|
||||
// Commands that the local client implements
|
||||
func getContainerSubCommands() []*cobra.Command {
|
||||
|
||||
var _listSubCommand = _psCommand
|
||||
_listSubCommand.Use = "list"
|
||||
|
||||
return []*cobra.Command{
|
||||
_attachCommand,
|
||||
_checkpointCommand,
|
||||
@@ -64,8 +68,8 @@ func getContainerSubCommands() []*cobra.Command {
|
||||
_execCommand,
|
||||
_exportCommand,
|
||||
_killCommand,
|
||||
&_listSubCommand,
|
||||
_logsCommand,
|
||||
_psCommand,
|
||||
_mountCommand,
|
||||
_pauseCommand,
|
||||
_portCommand,
|
||||
|
||||
Reference in New Issue
Block a user