fix: NullIndicator for truly silent TUI mode - no stdout at all

This commit is contained in:
2025-11-05 13:55:41 +00:00
parent e2596c4207
commit a5560fd6b1
14 changed files with 32 additions and 6 deletions

View File

@ -395,4 +395,18 @@ func NewIndicator(interactive bool, indicatorType string) Indicator {
default:
return NewLineByLine() // Default to line-by-line for better compatibility
}
}
}
// NullIndicator is a no-op indicator that produces no output (for TUI mode)
type NullIndicator struct{}
// NewNullIndicator creates an indicator that does nothing
func NewNullIndicator() *NullIndicator {
return &NullIndicator{}
}
func (n *NullIndicator) Start(message string) {}
func (n *NullIndicator) Update(message string) {}
func (n *NullIndicator) Complete(message string) {}
func (n *NullIndicator) Fail(message string) {}
func (n *NullIndicator) Stop() {}