mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
adopt http://no-color.org/
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…
x
Reference in New Issue
Block a user