Skip to content

Commit d19bd5b

Browse files
committed
simpler stop UI
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 5fc2b2a commit d19bd5b

File tree

3 files changed

+1
-131
lines changed

3 files changed

+1
-131
lines changed

cmd/formatter/ansi.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ func restoreCursor() {
4242
fmt.Print(ansi("8"))
4343
}
4444

45-
func hideCursor() {
46-
if disableAnsi {
47-
return
48-
}
49-
fmt.Print(ansi("[?25l"))
50-
}
51-
5245
func showCursor() {
5346
if disableAnsi {
5447
return

cmd/formatter/stopping.go

Lines changed: 0 additions & 119 deletions
This file was deleted.

pkg/compose/up.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
9292
}
9393
}
9494

95-
tui := formatter.NewStopping(logConsumer)
96-
defer tui.Close()
97-
logConsumer = tui
98-
9995
watcher, err := NewWatcher(project, options, s.watch, logConsumer)
10096
if err != nil && options.Start.Watch {
10197
return err
@@ -112,7 +108,7 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
112108
first := true
113109
gracefulTeardown := func() {
114110
first = false
115-
tui.ApplicationTermination()
111+
fmt.Println("Gracefully Stopping... press Ctrl+C again to force")
116112
eg.Go(func() error {
117113
return progress.RunWithLog(context.WithoutCancel(ctx), func(ctx context.Context) error {
118114
return s.stop(ctx, project.Name, api.StopOptions{

0 commit comments

Comments
 (0)