mirror of
https://github.com/docker/compose.git
synced 2025-07-22 13:14:29 +02:00
pull --quiet should not drop status message, only progress
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
69a83d1303
commit
1d08390864
@ -42,9 +42,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *composeService) Pull(ctx context.Context, project *types.Project, options api.PullOptions) error {
|
func (s *composeService) Pull(ctx context.Context, project *types.Project, options api.PullOptions) error {
|
||||||
if options.Quiet {
|
|
||||||
return s.pull(ctx, project, options)
|
|
||||||
}
|
|
||||||
return progress.RunWithTitle(ctx, func(ctx context.Context) error {
|
return progress.RunWithTitle(ctx, func(ctx context.Context) error {
|
||||||
return s.pull(ctx, project, options)
|
return s.pull(ctx, project, options)
|
||||||
}, s.stdinfo(), "Pulling")
|
}, s.stdinfo(), "Pulling")
|
||||||
@ -118,7 +115,7 @@ func (s *composeService) pull(ctx context.Context, project *types.Project, opts
|
|||||||
|
|
||||||
idx, name, service := i, name, service
|
idx, name, service := i, name, service
|
||||||
eg.Go(func() error {
|
eg.Go(func() error {
|
||||||
_, err := s.pullServiceImage(ctx, service, s.configFile(), w, false, project.Environment["DOCKER_DEFAULT_PLATFORM"])
|
_, err := s.pullServiceImage(ctx, service, s.configFile(), w, opts.Quiet, project.Environment["DOCKER_DEFAULT_PLATFORM"])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pullErrors[idx] = err
|
pullErrors[idx] = err
|
||||||
if service.Build != nil {
|
if service.Build != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user