Commit Graph

27 Commits

Author SHA1 Message Date
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 e2c67d9161 adding install target to Makefile 2022-05-28 18:31:46 -07:00
Sam Boysel 5b555f0cee build before running tests 2022-05-28 18:24:17 -07:00
Kevin Schoon 3d946499a2 build bin/pomo by default 2021-10-10 11:32:10 -04:00
Kevin Schoon fb3e9d3184 update Makefile 2021-07-28 21:36:33 -04:00
Kevin Schoon c880e8ac1b rm release helpers
Binary releases suck to maintain and upstream package maintainers, e.g.
Debian, Brew, etc. should be preferred.
2021-07-28 20:00:16 -04:00
Kevin Schoon 34eab4e98b restructure project into modules 2020-09-08 11:35:47 -05:00
Kevin Schoon 3d478cbcf9 rm usermap on build 2019-03-17 15:12:48 -04:00
Kevin Schoon 952ebbf1fc add new build environment for cross compile 2019-03-17 15:10:28 -04:00
Kevin Schoon cb6867d329 add installer script 2019-02-10 15:39:45 -05:00
Kevin Schoon 14734c3ccf update Makefile 2018-07-12 15:04:02 -04:00
Kevin Schoon c25e4a7e21 remove /bin from md5 output 2018-02-01 16:27:09 -05:00
Kevin Schoon aa645b4c55 output md5 hashes 2018-02-01 16:16:55 -05:00
Kevin Schoon 5b39aa365e improve build support 2018-02-01 16:11:44 -05:00
Kevin Schoon 06bec467f1 support OSX cross compilation 2018-02-01 15:20:22 -05:00
Christos Kontas abed8fd61c Makefile: use automatic variables for bindata.go
This change can easily let us expand the rule by adding more files as a
dependency.  Even better, we can define a variable to hold all these
external, binary resources.
2018-02-01 10:20:12 +01:00
Christos Kontas a9172824a2 Makefile: shorten recipe using default target var 2018-02-01 10:13:45 +01:00
Christos Kontas 858872bab8 Makefile: split the target from the PHONY rule
A PHONY rule is executed always.  The target of the `readme' rule is to
create the `www/data/readme.json', which depends only on `README.md'.
If we specify these dependencies separately, make(1) won't build the
`readme.json', if it's not necessary.  And yet, we can refer to this
creation by typing `make readme'.
2018-02-01 10:10:24 +01:00
Christos Kontas f8a7c65bf3 Makefile: explicitly create bin/, if necessary
Most of the go(1) tools will create the missing directory.
Yet, it is better to define this dependency explicitly to make(1),
to avoid unnecessary surprises.

Another useful feature of make(1) is the multiple targets per rule.
This way, we can have the same action and it is the target the variable
of the rule, anymore.
2018-02-01 10:07:57 +01:00
Christos Kontas 295f0d024a Makefile: add missing dependency for `www/data' 2018-02-01 10:00:53 +01:00
Christos Kontas 1bb38796ad Makefile: simplify `clean' rule
There is a special rule in make(1) to denote that we don't care about
the result of a command.  Additionally, we can also instruct rm(1) not
to complain when it didn't find a file/directory to remove.

As a final touch, there is no point of having 2 shell executions to
remove 2 or more files.  We can compress these 2 recipes into a single
one.

Reference:
   https://www.gnu.org/software/make/manual/html_node/Errors.html
2018-02-01 09:56:51 +01:00
Kevin Schoon af18268be6 add vet to test 2018-01-26 23:34:21 +08:00
Kevin Schoon d02072888d update Makefile 2018-01-23 00:27:35 +08:00
Kevin Schoon 1d74a3356d add docs 2018-01-22 23:07:58 +08:00
Kevin Schoon 7b1bf2980c add hugo sources 2018-01-22 22:59:03 +08:00
Kevin Schoon 0ada6d0972 fix version 2018-01-21 23:38:17 +08:00
Kevin Schoon 85c4f20f8c refactor run loop, add simple libnotify support, improve notifications, binpack tomato image 2018-01-21 18:35:03 +08:00