Commit Graph

17 Commits

Author SHA1 Message Date
Sam Boysel 3ba07e9a87 check if onEvent is set, parse argument array 2022-05-31 13:35:15 -07:00
Sam Boysel 3d3a2bc152 execute command on state change 2022-05-30 23:21:29 -07:00
Kevin Schoon 1b321198fb fix issue where interface can block
Fixed an issue where the UI can block when certain key combinations are
pressed in different states. An alternative and more robust approach would
likely be to re-write the runner code as a finite state machine, however
these quick fixes work okay.

Additionally cleaned up some spacing in console messages and added a CREATED
state which is the default state of a pomodoro.
2022-05-30 14:59:03 -05:00
Sam Boysel afb603d3c6 config, data, and runtime files default to XDG base directories 2022-05-28 03:12:43 -07:00
WN c1416ef9dc Fix for issue 44, runs always starting at 0 pomodoros 2022-01-05 17:36:12 +01:00
Kevin Schoon 7d4c4889c4
Merge pull request #51 from amiel/publish-and-listen
Use a separate socket path to publish so pomo can publish and listen on different sockets
2021-11-02 07:46:52 -05:00
Amiel Martin c65d978114
Error message for use of publish without publish socket path 2021-10-13 15:36:25 -08:00
Amiel Martin 064d2f0341
Use a separate socket path to publish so pomo can publish and listen on different sockets 2021-10-13 15:26:42 -08:00
Amiel Martin c6c3e43991
Allow pomo status --json 2021-10-13 13:10:13 -08:00
Kevin Schoon a7947a7cb7 apply some formatting fixes 2021-09-01 08:56:22 -04:00
paperbenni 569a156fd0 show duration of pause between intervals 2021-08-31 00:31:35 +02:00
Kevin Schoon 28e436f73d allow deleting a range of tasks 2021-08-07 12:09:00 -04:00
Kevin Schoon a897198dae support serving and receiving requests for status via sockets 2021-07-29 13:01:25 -04:00
Kevin Schoon eccaca0dc4 upgrade termui to v3 2021-07-28 18:52:20 -04:00
Kevin Schoon 28b2e14b51 fix nil ptr config #40 2020-09-22 08:21:44 -05:00
Kevin Schoon cbb4165766 refactor cmd interface for better testing
This change allows for E2E blackbox testing of pomodoro commands
by adding a New(*pomo.Config) *Cli.cmd function to the cmd module.
In a subsequent PR we should refactor pomo.Config into a public
module.
2020-09-21 09:20:44 -05:00
Kevin Schoon 34eab4e98b restructure project into modules 2020-09-08 11:35:47 -05:00