diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 00:32:50 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 00:32:50 +0300 |
| commit | 6a820a17ef8a6dd76e4f984cf6269beb8c96d0c3 (patch) | |
| tree | 33073d2d963ef1d60fc4aa56d62e460a17008510 /cmd | |
| parent | 603024c59e04019cb867c43d8e8298b2d459de3d (diff) | |
Fix ANSI color truncation by using ansi-aware table
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tasksamurai/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go index 56ee08a..4420e11 100644 --- a/cmd/tasksamurai/main.go +++ b/cmd/tasksamurai/main.go @@ -12,8 +12,8 @@ import ( "tasksamurai/internal/task" "tasksamurai/internal/ui" - "github.com/charmbracelet/bubbles/table" tea "github.com/charmbracelet/bubbletea" + atable "tasksamurai/internal/atable" ) func main() { @@ -23,7 +23,7 @@ func main() { os.Exit(1) } - var rows []table.Row + var rows []atable.Row for _, t := range tasks { if t.Status == "completed" { continue @@ -40,7 +40,7 @@ func main() { } } -func taskToRow(t task.Task) table.Row { +func taskToRow(t task.Task) atable.Row { active := "" if t.Start != "" { active = "yes" @@ -60,7 +60,7 @@ func taskToRow(t task.Task) table.Row { anns = append(anns, a.Description) } - return table.Row{ + return atable.Row{ strconv.Itoa(t.ID), t.Description, active, |
