feat(progress): make full/empty fill characters configurable

This commit is contained in:
Randall Winkhart
2024-02-06 09:06:12 -05:00
committed by Christian Rocha
parent 79cc9621d5
commit 7fe39190c8
+8
View File
@@ -79,6 +79,14 @@ func WithSolidFill(color string) Option {
}
}
// WithCustomFillCharacters sets the characters used to construct the full and empty components of the progress bar.
func WithCustomFillCharacters(full rune, empty rune) Option {
return func(m *Model) {
m.Full = full
m.Empty = empty
}
}
// WithoutPercentage hides the numeric percentage.
func WithoutPercentage() Option {
return func(m *Model) {