diff options
author | baude <bbaude@redhat.com> | 2019-02-27 12:26:35 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-02-27 12:29:41 -0600 |
commit | 4a33ee2ab337b84bbfbc0045c08ac3d43073d702 (patch) | |
tree | 96dcdde8b74a0d0a2e6b04816de0f50a0009cfc8 /cmd/podman/image.go | |
parent | fd16be5c00533e5237bfaa640e5afb4b45d29aa5 (diff) | |
download | podman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.tar.gz podman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.tar.bz2 podman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.zip |
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>
Diffstat (limited to 'cmd/podman/image.go')
-rw-r--r-- | cmd/podman/image.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/podman/image.go b/cmd/podman/image.go index 14053cb0d..aaa1866c4 100644 --- a/cmd/podman/image.go +++ b/cmd/podman/image.go @@ -14,6 +14,7 @@ var ( Long: imageDescription, }, } + _imagesSubCommand = _imagesCommand ) //imageSubCommands are implemented both in local and remote clients @@ -21,7 +22,6 @@ var imageSubCommands = []*cobra.Command{ _buildCommand, _historyCommand, _imageExistsCommand, - _imagesCommand, _importCommand, _inspectCommand, _loadCommand, @@ -37,4 +37,8 @@ func init() { imageCommand.SetUsageTemplate(UsageTemplate()) imageCommand.AddCommand(imageSubCommands...) imageCommand.AddCommand(getImageSubCommands()...) + + _imagesSubCommand.Aliases = []string{"ls", "list"} + imageCommand.AddCommand(&_imagesSubCommand) + } |