@@ -55,7 +55,7 @@ type upOptions struct {
55
55
wait bool
56
56
waitTimeout int
57
57
watch bool
58
- navigationBar bool
58
+ navigationMenu bool
59
59
}
60
60
61
61
func (opts upOptions ) apply (project * types.Project , services []string ) (* types.Project , error ) {
@@ -128,7 +128,11 @@ func upCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) *c
128
128
flags .BoolVar (& up .wait , "wait" , false , "Wait for services to be running|healthy. Implies detached mode." )
129
129
flags .IntVar (& up .waitTimeout , "wait-timeout" , 0 , "Maximum duration to wait for the project to be running|healthy" )
130
130
flags .BoolVarP (& up .watch , "watch" , "w" , false , "Watch source code and rebuild/refresh containers when files are updated." )
131
- flags .BoolVar (& up .navigationBar , "navigation-menu" , true , "While running in attach mode, enable shortcuts and shortcuts info bar." )
131
+ composeMenu := true
132
+ if os .Getenv (ComposeMenu ) != "" {
133
+ composeMenu = utils .StringToBool (os .Getenv (ComposeMenu ))
134
+ }
135
+ flags .BoolVar (& up .navigationMenu , "navigation-menu" , composeMenu , "While running in attach mode, enable shortcuts and shortcuts info bar." )
132
136
133
137
return upCmd
134
138
}
@@ -262,7 +266,7 @@ func runUp(
262
266
WaitTimeout : timeout ,
263
267
Watch : upOptions .watch ,
264
268
Services : services ,
265
- NavigationBar : upOptions .navigationBar ,
269
+ NavigationBar : upOptions .navigationMenu ,
266
270
},
267
271
})
268
272
}
0 commit comments