mirror of
https://github.com/docker/compose.git
synced 2025-07-27 15:44:08 +02:00
enforce keyboard.Close is always executed to restore terminal
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
d633c33a19
commit
084a5ca312
@ -95,6 +95,7 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warn("could not start menu, an error occurred while starting.")
|
logrus.Warn("could not start menu, an error occurred while starting.")
|
||||||
} else {
|
} else {
|
||||||
|
defer keyboard.Close() //nolint:errcheck
|
||||||
isWatchConfigured := s.shouldWatch(project)
|
isWatchConfigured := s.shouldWatch(project)
|
||||||
isDockerDesktopActive := s.isDesktopIntegrationActive()
|
isDockerDesktopActive := s.isDesktopIntegrationActive()
|
||||||
isDockerDesktopComposeUI := s.isDesktopUIEnabled()
|
isDockerDesktopComposeUI := s.isDesktopUIEnabled()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user