feat!(progress): width now uses getters and setters

This commit is contained in:
Christian Rocha
2024-10-31 15:02:05 -04:00
parent e8ba813a88
commit 4b0f9c8282
3 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func TestGradient(t *testing.T) {
expLast := strings.Split(sb.String(), AnsiReset)[0]
for _, width := range []int{3, 5, 50} {
p.Width = width
p.SetWidth(width)
res := p.ViewAs(1.0)
// extract colors from the progrss bar by splitting at p.Full+AnsiReset, leaving us with just the color sequences