mirror of https://github.com/docker/compose.git
when ran with ANSI disabled, force progress=plain
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
6c175548b8
commit
9630cc5808
|
@ -395,6 +395,9 @@ func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command { //
|
||||||
switch opts.Progress {
|
switch opts.Progress {
|
||||||
case ui.ModeAuto:
|
case ui.ModeAuto:
|
||||||
ui.Mode = ui.ModeAuto
|
ui.Mode = ui.ModeAuto
|
||||||
|
if ansi == "never" {
|
||||||
|
ui.Mode = ui.ModePlain
|
||||||
|
}
|
||||||
case ui.ModeTTY:
|
case ui.ModeTTY:
|
||||||
if ansi == "never" {
|
if ansi == "never" {
|
||||||
return fmt.Errorf("can't use --progress tty while ANSI support is disabled")
|
return fmt.Errorf("can't use --progress tty while ANSI support is disabled")
|
||||||
|
|
Loading…
Reference in New Issue