diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-25 23:35:34 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-25 23:35:34 +0300 |
| commit | c53a8c94d012db78ceab7d70698e3ae98f4d2968 (patch) | |
| tree | f456c173d3f4b9277988c4a88c8dbd7e43528478 /cmd | |
| parent | c80437bf0edab6a11291f054bc7bad8873ce8885 (diff) | |
feat: Add fish shell integration
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/timr/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/timr/main.go b/cmd/timr/main.go index 534275b..0625070 100644 --- a/cmd/timr/main.go +++ b/cmd/timr/main.go @@ -27,6 +27,8 @@ func main() { output, err = timer.GetStatus() case "reset": output, err = timer.ResetTimer() + case "prompt": + output, err = timer.GetPromptStatus() case "live": p := tea.NewProgram(live.NewModel()) if err := p.Start(); err != nil { @@ -47,5 +49,5 @@ func main() { } func printUsage() { - fmt.Println("Usage: timr <start|stop|pause|status|reset|live>") + fmt.Println("Usage: timr <start|stop|pause|status|reset|live|prompt>") } |
