cli/mobycli: Exec(): simplify output

The command now was showing 2 informational messages (about PAT and
Scan); the scan one had been there for a while so most users will
know about it by now.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-12-06 21:48:43 +01:00
Родитель d7becb4ee1
Коммит f1aa070b81
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 76698F39D527CE8C
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -33,7 +33,6 @@ import (
"github.com/docker/compose-cli/cli/metrics"
"github.com/docker/compose-cli/cli/mobycli/resolvepath"
"github.com/docker/compose/v2/pkg/compose"
"github.com/docker/compose/v2/pkg/utils"
"github.com/google/shlex"
"github.com/spf13/cobra"
)
@ -92,9 +91,6 @@ func Exec(root *cobra.Command) {
}
commandArgs := os.Args[1:]
command := metrics.GetCommand(commandArgs)
if command == "build" && !metrics.HasQuietFlag(commandArgs) {
utils.DisplayScanSuggestMsg()
}
if command == "login" && !metrics.HasQuietFlag(commandArgs) {
displayPATSuggestMsg(commandArgs)
}