You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/compose/compose.go
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,8 @@ const (
69
69
ComposeEnvFiles="COMPOSE_ENV_FILES"
70
70
// ComposeMenu defines if the navigation menu should be rendered. Can be also set via --menu
71
71
ComposeMenu="COMPOSE_MENU"
72
+
// ComposeProgress defines type of progress output, if --progress isn't used
73
+
ComposeProgress="COMPOSE_PROGRESS"
72
74
)
73
75
74
76
// rawEnv load a dot env file using docker/cli key=value parser, without attempt to interpolate or evaluate values
@@ -228,7 +230,7 @@ func (o *ProjectOptions) addProjectFlags(f *pflag.FlagSet) {
228
230
f.StringVar(&o.ProjectDir, "project-directory", "", "Specify an alternate working directory\n(default: the path of the, first specified, Compose file)")
229
231
f.StringVar(&o.WorkDir, "workdir", "", "DEPRECATED! USE --project-directory INSTEAD.\nSpecify an alternate working directory\n(default: the path of the, first specified, Compose file)")
230
232
f.BoolVar(&o.Compatibility, "compatibility", false, "Run compose in backward compatibility mode")
231
-
f.StringVar(&o.Progress, "progress", string(buildkit.AutoMode), fmt.Sprintf(`Set type of progress output (%s)`, strings.Join(printerModes, ", ")))
233
+
f.StringVar(&o.Progress, "progress", defaultStringVar(ComposeProgress, string(buildkit.AutoMode)), fmt.Sprintf(`Set type of progress output (%s)`, strings.Join(printerModes, ", ")))
232
234
f.BoolVar(&o.All, "all-resources", false, "Include all resources, even those not used by services")
0 commit comments