Skip to content

Commit 9cc1613

Browse files
committed
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent c4b47fe commit 9cc1613

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/compose/compose.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ func RootCommand(streams command.Cli, backend api.Service) *cobra.Command { //no
304304
if verbose {
305305
logrus.SetLevel(logrus.TraceLevel)
306306
}
307+
308+
if noColor, ok := os.LookupEnv("NO_COLOR"); ok && noColor != "" && !cmd.Flags().Changed("ansi") {
309+
ansi = "never"
310+
}
311+
307312
formatter.SetANSIMode(streams, ansi)
308313
switch ansi {
309314
case "never":

0 commit comments

Comments
 (0)