Files
docker-cli/cli/command/service
Sebastiaan van Stijn 6279612443 Fix prefix-matching for service ps
The docker CLI matches objects either by ID _prefix_
or a full name match, but not partial name matches.

The correct order of resolution is;

- Full ID match (a name should not be able to mask an ID)
- Full name
- ID-prefix

This patch changes the way services are matched.

Also change to use the first matching service, if there's a
full match (by ID or Name) instead of continue looking for
other possible matches.

Error handling changed;

- Do not error early if multiple services were requested
  and one or more services were not found. Print the
  services that were not found after printing those that
  _were_ found instead
- Print an error if ID-prefix matching is ambiguous

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-05-31 21:43:56 +02:00
..
2017-05-08 10:51:30 -07:00
2017-05-08 15:57:50 -04:00
2017-04-17 18:07:56 -04:00
2017-05-08 10:51:30 -07:00
2017-05-11 13:42:49 -07:00
2017-05-31 21:43:56 +02:00
2017-04-17 18:07:56 -04:00
2017-04-17 18:07:56 -04:00
2017-04-17 17:40:59 -04:00