An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Terminal Countdown Timer

Simple CLI timer written in Haskell.

![demo](./demo.gif)

## 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 .