mirror of https://github.com/docker/compose.git
Add progress.Run to down cmd
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
2bb5614501
commit
fe0cc0d2cc
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/docker/api/client"
|
||||
"github.com/docker/api/progress"
|
||||
)
|
||||
|
||||
func downCommand() *cobra.Command {
|
||||
|
@ -51,9 +52,11 @@ func runDown(ctx context.Context, opts composeOptions) error {
|
|||
return errors.New("compose not implemented in current context")
|
||||
}
|
||||
|
||||
options, err := opts.toProjectOptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return composeService.Down(ctx, options)
|
||||
return progress.Run(ctx, func(ctx context.Context) error {
|
||||
options, err := opts.toProjectOptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return composeService.Down(ctx, options)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue