diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 18:22:36 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 18:22:36 +0300 |
| commit | 7160f7669b35f89d6a4bedb46aa976ed60ebc3b9 (patch) | |
| tree | 58693754d3f99842cbb4daab8666a6359f57bfae /cmd | |
| parent | afad8eec02ca5f0dfd37917c1d4f07399d773604 (diff) | |
Add debug logging and fix edit for started tasks
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tasksamurai/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go index 9b97554..65358e1 100644 --- a/cmd/tasksamurai/main.go +++ b/cmd/tasksamurai/main.go @@ -5,6 +5,7 @@ import ( "fmt" "os" + "tasksamurai/internal/task" "tasksamurai/internal/ui" tea "github.com/charmbracelet/bubbletea" @@ -12,8 +13,14 @@ import ( func main() { filter := flag.String("filter", "", "task filter expression") + debugLog := flag.String("debug-log", "", "path to debug log file") flag.Parse() + if err := task.SetDebugLog(*debugLog); err != nil { + fmt.Fprintln(os.Stderr, "failed to enable debug log:", err) + os.Exit(1) + } + m, err := ui.New(*filter) if err != nil { fmt.Fprintln(os.Stderr, "failed to load tasks:", err) |
