Commit Graph

5 Commits

Author SHA1 Message Date
Ethan P
69d9c38326
batwatch: small formatting changes 2020-07-06 17:43:37 -07:00
Alissa Huskey
57be774f88 Fix gnu stat flag
- fix gnu stat formatting option from %z to %Z
- use read with a one second timeout instead of sleep, then quit if user
  responds with "q" (for testing, mostly)
- call pager_exec on entr and bat line instead of main so that --clear
  works
2020-07-06 17:36:03 -07:00
Alissa Huskey
4c09718a46 batwatch changes to reveal a bug and add --help
- Add `-h` and `--help` flags to print out basic usage.
- Refactor determine_stat_variant so that it checks to make sure the
value from `stat` is a epoch timestamp, and exit noisily if it is not.
- Change `determine_watcher` to set the `OPT_WATCHER` global directory
directly instead of echoing it then being called from a subshell. There
was an errror that the subshell was obscuring.
- Add a test to reflect the bug.
2020-07-06 17:36:03 -07:00
Ethan P
e79e747e71
test: Avoid using 'head' 2020-04-27 01:22:22 -07:00
Ethan P
c4af3eb637
Add tests for all programs --version 2020-04-08 03:11:56 -07:00