enforce keyboard.Close is always executed to restore terminal

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2024-06-10 10:41:37 +02:00 committed by Nicolas De loof
parent d633c33a19
commit 084a5ca312
1 changed files with 1 additions and 0 deletions

View File

@ -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()