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