Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.03 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.03 KB

Terminal Countdown Timer

Simple CLI timer written in Haskell.

demo

Usage

Type timer and the time that you want (less than an hour)

# Yes 👍
timer 40 # starts 00:40
timer 220 # starts 02:20
timer 1230 # starts 12:30

# No 👎
timer # time is required
timer 1:00 # no need for colons
timer 10 minutes # no need for words
timer 89 # type 129 instead

IOS Download

$ brew install wget
$ wget https://github.com/berto/terminal-countdown-timer/raw/master/bin/timer 
$ chmod u+x timer
$ mv timer /usr/local/bin

Running / Testing

First, install stack. curl -sSL https://get.haskellstack.org/ | sh will work on most Unix systems, otherwise checkout https://docs.haskellstack.org/en/stable/README/ . If you haven't run other Haskell projects on your system, the first time you try to build the project it may say you have to run stack setup; do so.

Running:

stack build && stack exec timer 

Testing:

stack build && stack test

Installing:

stack build && stack install .