Skip to content

tiagofrancafernandes/golang-countdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Countdown

Screen shot

Install

go install github.com/antonmedv/countdown@latest

Or download prebuilt binary from releases.

Usage

Specify duration in Go format 1h2m3s.

countdown 25s

Or specify target time: 02:15PM or 14:15. For instance, if the current time would be 11:30, the next example would trigger a 2-minute countdown.

countdown 11:32

Add a command with && to run after the countdown.

countdown 1m30s && say "Hello, world"

Count from up from the zero.

countdown -up 30s

Announce (via macOS say command) last 10 seconds

countdown -say 10s

Key binding

  • p or P: To pause the countdown.
  • c or C: To resume the countdown.
  • Esc or Ctrl+C: To stop the countdown without running next command.

License

MIT

About

Terminal countdown timer in Golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%