1
0
mirror of https://github.com/docker/compose-cli.git synced 2026-10-28 07:19:39 +03:00

8 Commits

Author SHA1 Message Date
Laura Brehm
8a400d0c4f scout hint: tell user logging in is required (#2262)
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>
2023-08-25 09:15:42 -04:00
Yves Brissaud
eb0c44c6ef chore: handle BUILDKIT_PROGRESS to disable hints
the same way we check --progress flag, if it exists, disable

Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-15 15:59:58 +02:00
Yves Brissaud
9a3433477b chore: fix header dates
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-15 15:16:28 +02:00
Yves Brissaud
fac770ab1d fix: ignore short flags too when finding pulled image
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-12 15:41:29 +02:00
Yves Brissaud
1ceb12ae77 chore: manage CLI Hints enable/disable behaviour
- 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>
2023-06-12 14:39:50 +02:00
Yves Brissaud
90058ec005 ref: suggest management and check needed flags
only display the hints in main case, without progress, output or push
flags

Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-12 10:20:37 +02:00
Yves Brissaud
62c2e00acc ref: get pulled image
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
2023-06-06 18:32:14 +02:00
Yves Brissaud
635db3c338 feat: display docker scout hints on build and pull
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>
2023-06-06 11:38:55 +02:00