The `docker scout quickview` hint, displayed
after a user pulls or builds an image, only
works if the user is logged in to Hub.
Check if user isn't logged in, and make hint
more explicit in this case.
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
- cliHints entry in config.json
- if not present, enabled by default
- can be overridden by the DOCKER_CLI_HINTS environment variable
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
On `docker build` and `docker pull` commands, display a hint to
`docker scout quickview`.
Hints are disabled if quiet flag is used or if `DOCKER_SCOUT_HINTS`
environment variable is set to a false (according to Go) value:
`0`, `f`, `F`, `false`, `FALSE`, `False`
In case of a `docker build` the `docker scout quickview` command doesn't
need an argument as it will take the most recently built image by
default.
In case of a `docker pull` the pulled image is extracted from the
command arguments.
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>