mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
Add --all flag even though it is a noop so scripts will work
Until podman build supports caching, their are no intermediary builds, but people might still use scripts that use the --all option. Adding this will not hurt anything and could fix scripts. Also fixed sorting issues in options handling of images Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #896 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
93c1722caa
commit
7b2b2bc631
@ -54,8 +54,20 @@ func (a imagesSorted) Less(i, j int) bool { return a[i].CreatedTime.After(a[j].C
|
|||||||
var (
|
var (
|
||||||
imagesFlags = []cli.Flag{
|
imagesFlags = []cli.Flag{
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "quiet, q",
|
Name: "all, a",
|
||||||
Usage: "display only image IDs",
|
Usage: "Show all images (default hides intermediate images)",
|
||||||
|
},
|
||||||
|
cli.BoolFlag{
|
||||||
|
Name: "digests",
|
||||||
|
Usage: "show digests",
|
||||||
|
},
|
||||||
|
cli.StringSliceFlag{
|
||||||
|
Name: "filter, f",
|
||||||
|
Usage: "filter output based on conditions provided (default [])",
|
||||||
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "format",
|
||||||
|
Usage: "Change the output format to JSON or a Go template",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "noheading, n",
|
Name: "noheading, n",
|
||||||
@ -66,16 +78,8 @@ var (
|
|||||||
Usage: "do not truncate output",
|
Usage: "do not truncate output",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "digests",
|
Name: "quiet, q",
|
||||||
Usage: "show digests",
|
Usage: "display only image IDs",
|
||||||
},
|
|
||||||
cli.StringFlag{
|
|
||||||
Name: "format",
|
|
||||||
Usage: "Change the output format to JSON or a Go template",
|
|
||||||
},
|
|
||||||
cli.StringSliceFlag{
|
|
||||||
Name: "filter, f",
|
|
||||||
Usage: "filter output based on conditions provided (default [])",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -888,16 +888,20 @@ _podman_info() {
|
|||||||
|
|
||||||
_podman_images() {
|
_podman_images() {
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
--help
|
-a
|
||||||
-h
|
--all
|
||||||
--quiet
|
--digests
|
||||||
-q
|
|
||||||
--noheading
|
|
||||||
-n
|
|
||||||
--no-trunc
|
|
||||||
--digests
|
--digests
|
||||||
--filter
|
|
||||||
-f
|
-f
|
||||||
|
--filter
|
||||||
|
-h
|
||||||
|
--help
|
||||||
|
--no-trunc
|
||||||
|
--notruncate
|
||||||
|
-n
|
||||||
|
--noheading
|
||||||
|
-q
|
||||||
|
--quiet
|
||||||
"
|
"
|
||||||
local options_with_args="
|
local options_with_args="
|
||||||
--format
|
--format
|
||||||
|
@ -11,6 +11,10 @@ Displays locally stored images, their names, and their IDs.
|
|||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
|
|
||||||
|
**--all, -a**
|
||||||
|
|
||||||
|
Show all images (by default filter out the intermediate image layers). The default is false. (This is a NOOP until podman build supports caching.)
|
||||||
|
|
||||||
**--digests**
|
**--digests**
|
||||||
|
|
||||||
Show image digests
|
Show image digests
|
||||||
|
Reference in New Issue
Block a user