From a5f907854f29e1c267ad30d1dfe85c2c47f5ac48 Mon Sep 17 00:00:00 2001 From: sinner Date: Wed, 15 Apr 2026 15:16:02 -0400 Subject: feat: add stdin support and retry logic for all search commands --- internal/formatter/formatter.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/formatter/formatter.go') diff --git a/internal/formatter/formatter.go b/internal/formatter/formatter.go index bb36fa8..159f027 100644 --- a/internal/formatter/formatter.go +++ b/internal/formatter/formatter.go @@ -64,11 +64,7 @@ func (f *BaseFormatter) FormatJSON(data any) error { } func isTerminal() bool { - fileInfo, err := os.Stdout.Stat() - if err != nil { - return false - } - return (fileInfo.Mode() & os.ModeCharDevice) != 0 + return utils.IsTerminal() } func GetTerminalWidth() int { -- cgit v1.2.3