Remove progress width limit & improve 'jf setup' message
@@ -23,7 +23,6 @@ import (
var terminalWidth int
const progressBarWidth = 20
-const minTerminalWidth = 70
const progressRefreshRate = 200 * time.Millisecond
type progressBarManager struct {
@@ -251,8 +250,8 @@ func InitProgressBarIfPossible(printLogPath bool) (ioUtils.ProgressMgr, *os.File
return newProgressBar, logFile, nil
}
-// Init progress bar if all required conditions are met:
-// CI == false (or unset), Stderr is a terminal, and terminal width is large enough
+// Init the progress bar, if the required conditions are met:
+// CI == false (or unset) and Stderr is a terminal.
func shouldInitProgressBar() (bool, error) {
ci, err := utils.GetBoolEnvValue(coreutils.CI, false)
if ci || err != nil {
@@ -265,7 +264,7 @@ func shouldInitProgressBar() (bool, error) {
if err != nil {
return false, err
}
- return terminalWidth >= minTerminalWidth, nil
+ return true, nil
}
// Check if Stderr is a terminal
