refactor: rebuild work without timewarrior dependency

This commit is contained in:
Patryk Hegenberg 2025-04-02 13:44:30 +02:00
parent b083a8255c
commit 4ceed6f301
12 changed files with 1879 additions and 626 deletions

10
main.go
View file

@ -8,11 +8,17 @@ import (
func main() {
app, err := NewApp()
if err != nil {
log.Fatalf("unable to setup application: %v", err)
log.Fatalf("ERROR: Unable to setup application: %v", err)
}
defer func() {
if err := app.Close(); err != nil {
log.Printf("ERROR: Failed to close application resources: %v", err)
}
}()
if len(os.Args) > 1 {
if err := app.setupCommands().Execute(); err != nil {
log.Fatalf("error executing command: %v", err)
os.Exit(1)
}
} else {
app.makeChoice()