Browse Source

enforce keyboard.Close is always executed to restore terminal

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 year ago
parent
commit
084a5ca312
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/compose/up.go

+ 1 - 0
pkg/compose/up.go

@@ -95,6 +95,7 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
 			if err != nil {
 				logrus.Warn("could not start menu, an error occurred while starting.")
 			} else {
+				defer keyboard.Close() //nolint:errcheck
 				isWatchConfigured := s.shouldWatch(project)
 				isDockerDesktopActive := s.isDesktopIntegrationActive()
 				isDockerDesktopComposeUI := s.isDesktopUIEnabled()