(dockerCli command.Cli)
| 84 | } |
| 85 | |
| 86 | func (opts *upOptions) validateNavigationMenu(dockerCli command.Cli) { |
| 87 | if !dockerCli.Out().IsTerminal() { |
| 88 | opts.navigationMenu = false |
| 89 | return |
| 90 | } |
| 91 | // If --menu flag was not set |
| 92 | if !opts.navigationMenuChanged { |
| 93 | if envVar, ok := os.LookupEnv(ComposeMenu); ok { |
| 94 | opts.navigationMenu = utils.StringToBool(envVar) |
| 95 | return |
| 96 | } |
| 97 | // ...and COMPOSE_MENU env var is not defined we want the default value to be true |
| 98 | opts.navigationMenu = true |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | func (opts upOptions) OnExit() api.Cascade { |
| 103 | switch { |
no test coverage detected