mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
filters: cleanup & fmt
Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
This commit is contained in:
parent
55d95185ed
commit
babd572015
2 changed files with 3 additions and 19 deletions
|
@ -1168,24 +1168,8 @@ func (cli *DockerCli) CmdImages(args ...string) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
/*
|
||||
var (
|
||||
untagged bool
|
||||
)
|
||||
for k,v := range imageFilters {
|
||||
}
|
||||
*/
|
||||
|
||||
// seeing -all untagged images is redundant, and no point in seeing a visualization of that
|
||||
/*
|
||||
if *flUntagged && (*all || *flViz || *flTree) {
|
||||
fmt.Fprintln(cli.err, "Notice: --untagged is not to be used with --all, --tree or --viz")
|
||||
*flUntagged = false
|
||||
}
|
||||
*/
|
||||
|
||||
matchName := cmd.Arg(0)
|
||||
|
||||
// FIXME: --viz and --tree are deprecated. Remove them in a future version.
|
||||
if *flViz || *flTree {
|
||||
v := url.Values{
|
||||
|
|
|
@ -22,9 +22,9 @@ func ParseFlag(arg string, prev map[string]string) (map[string]string, error) {
|
|||
} else {
|
||||
filters = map[string]string{}
|
||||
}
|
||||
if len(arg) == 0 {
|
||||
return filters, nil
|
||||
}
|
||||
if len(arg) == 0 {
|
||||
return filters, nil
|
||||
}
|
||||
|
||||
for _, chunk := range strings.Split(arg, ";") {
|
||||
if !strings.Contains(chunk, "=") {
|
||||
|
|
Loading…
Add table
Reference in a new issue