refactor: rebuild work without timewarrior dependency
This commit is contained in:
parent
b083a8255c
commit
4ceed6f301
12 changed files with 1879 additions and 626 deletions
10
main.go
10
main.go
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue