mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
simpler stop UI
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
c89f30170d
commit
3875e13fad
3 changed files with 1 additions and 131 deletions
|
|
@ -92,10 +92,6 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
|||
}
|
||||
}
|
||||
|
||||
tui := formatter.NewStopping(logConsumer)
|
||||
defer tui.Close()
|
||||
logConsumer = tui
|
||||
|
||||
watcher, err := NewWatcher(project, options, s.watch, logConsumer)
|
||||
if err != nil && options.Start.Watch {
|
||||
return err
|
||||
|
|
@ -112,7 +108,7 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
|||
first := true
|
||||
gracefulTeardown := func() {
|
||||
first = false
|
||||
tui.ApplicationTermination()
|
||||
fmt.Println("Gracefully Stopping... press Ctrl+C again to force")
|
||||
eg.Go(func() error {
|
||||
return progress.RunWithLog(context.WithoutCancel(ctx), func(ctx context.Context) error {
|
||||
return s.stop(ctx, project.Name, api.StopOptions{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue