wip: refactoring tui

This commit is contained in:
adamdottv 2025-06-05 15:44:20 -05:00
commit 95d5e1f231
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
37 changed files with 1489 additions and 1794 deletions

View file

@ -5,6 +5,7 @@ import (
"log/slog"
"os"
"path/filepath"
"strings"
"sync"
"time"
@ -51,7 +52,11 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
app_, err := app.New(ctx, httpClient)
version := Version
if version != "dev" && !strings.HasPrefix(Version, "v") {
version = "v" + Version
}
app_, err := app.New(ctx, version, httpClient)
if err != nil {
panic(err)
}