Skip to content

Commit

Permalink
Merge pull request #141 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 7.2.1
  • Loading branch information
andyone authored May 15, 2023
2 parents 9f1df0f + 5a7f00a commit 9389121
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
// Application info
const (
APP = "bibop"
VER = "7.2.0"
VER = "7.2.1"
DESC = "Utility for testing command-line tools"
)

Expand Down Expand Up @@ -150,7 +150,16 @@ func preConfigureUI() {
}
}

if !fsutil.IsCharacterDevice("/dev/stdout") && os.Getenv("FAKETTY") == "" {
if os.Getenv("CI") == "" {
fmtutil.SeparatorFullscreen = true
} else {
fmtc.DisableColors = false
}

// Check for output redirect using pipes
if fsutil.IsCharacterDevice("/dev/stdin") &&
!fsutil.IsCharacterDevice("/dev/stdout") &&
os.Getenv("FAKETTY") == "" {
fmtc.DisableColors = true
rawOutput = true
}
Expand All @@ -166,10 +175,6 @@ func configureUI() {
fmtc.DisableColors = true
}

if os.Getenv("CI") == "" {
fmtutil.SeparatorFullscreen = true
}

fmtutil.SeparatorSymbol = "–"

switch {
Expand Down

0 comments on commit 9389121

Please sign in to comment.