https://github.com/bertoort/terminal-countdown-timer
Set a time, it counts down from then
https://github.com/bertoort/terminal-countdown-timer
haskell
Last synced: 10 days ago
JSON representation
Set a time, it counts down from then
- Host: GitHub
- URL: https://github.com/bertoort/terminal-countdown-timer
- Owner: bertoort
- License: bsd-3-clause
- Created: 2017-01-25T18:39:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T06:49:29.000Z (almost 9 years ago)
- Last Synced: 2024-06-11T17:10:19.046Z (over 1 year ago)
- Topics: haskell
- Language: Haskell
- Size: 5.04 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminal Countdown Timer
Simple CLI timer written in Haskell.

## Usage
Type `timer` and the time that you want (less than an hour)
```sh
# 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
```sh
$ 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:
```bash
stack build && stack exec timer
```
Testing:
```bash
stack build && stack test
```
Installing:
```bash
stack build && stack install .