From 0fbcfa5de06b14ef41744220a6397a210789e0e3 Mon Sep 17 00:00:00 2001 From: "Anand Babu (AB) Periasamy" Date: Sat, 29 Aug 2015 12:25:03 -0700 Subject: [PATCH] automatically enable quiet-mode if terminal capabilities are limited --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index e976e257..46ffc4b4 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ import ( "github.com/minio/mc/pkg/console" "github.com/minio/minio/pkg/probe" "github.com/minio/pb" + "github.com/olekukonko/ts" ) // Check for the environment early on and gracefully report. @@ -162,6 +163,10 @@ func main() { app.Before = registerBefore app.ExtraInfo = func() map[string]string { + if _, e := ts.GetSize(); e != nil { + globalQuietFlag = true + } + if globalDebugFlag { return getSystemData() }