mirror of https://github.com/docker/compose.git
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
c4b47fe911
commit
9cc1613b55
|
@ -304,6 +304,11 @@ func RootCommand(streams command.Cli, backend api.Service) *cobra.Command { //no
|
|||
if verbose {
|
||||
logrus.SetLevel(logrus.TraceLevel)
|
||||
}
|
||||
|
||||
if noColor, ok := os.LookupEnv("NO_COLOR"); ok && noColor != "" && !cmd.Flags().Changed("ansi") {
|
||||
ansi = "never"
|
||||
}
|
||||
|
||||
formatter.SetANSIMode(streams, ansi)
|
||||
switch ansi {
|
||||
case "never":
|
||||
|
|
Loading…
Reference in New Issue