feat: add progress bar to timer

- add progress package for visual feedback
- implement calc_percentage function for duration calculation
- update TerminalOutput to include progress percentage and view

🤖
This commit is contained in:
Sebastian Mark 2024-11-10 20:31:21 +01:00
parent 94e7b41421
commit 6b90db0d6c
4 changed files with 27 additions and 4 deletions

View file

@ -25,7 +25,7 @@ func (a app) View() string {
}
helpView := a.help.View(a.keys)
height := 8 - strings.Count(body, "\n") - strings.Count(serverStatus, "\n") - strings.Count(helpView, "\n")
height := 10 - strings.Count(body, "\n") - strings.Count(serverStatus, "\n") - strings.Count(helpView, "\n")
return body + strings.Repeat("\n", height) + serverStatus + helpView
}