summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-25 23:35:34 +0300
committerPaul Buetow <paul@buetow.org>2025-06-25 23:35:34 +0300
commitc53a8c94d012db78ceab7d70698e3ae98f4d2968 (patch)
treef456c173d3f4b9277988c4a88c8dbd7e43528478 /cmd
parentc80437bf0edab6a11291f054bc7bad8873ce8885 (diff)
feat: Add fish shell integration
Diffstat (limited to 'cmd')
-rw-r--r--cmd/timr/main.go4
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>")
}