event-countdown

Crates.ioevent-countdown
lib.rsevent-countdown
version1.0.4
sourcesrc
created_at2021-05-16 14:33:37.313667
updated_at2021-05-16 14:33:37.313667
descriptionCountdown to events you're looking forward to.
homepagehttps://github.com/leethomas/countdown
repositoryhttps://github.com/leethomas/countdown
max_upload_size
id398197
size23,377
Lee (leethomas)

documentation

https://github.com/leethomas/countdown

README

Countdown

Description

Countdown is a command line program that tells you how many days are remaining until any number of events that you've configured. Use it in your shell's $PS1 to always have the soonest event displayed, or just use it on the fly whenever you need some encouragement for the week.

demo

Usage

USAGE:
    countdown [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -n, --n <n>            Max number of events to display.
    -o, --order <order>    Specify the ordering of the events returned [possible values: shuffle, time-asc, time-desc]

Setup & Installation

  1. Install with cargo install event-countdown

  2. Before running, create a .countdown.toml file in your home directory containing a list of events you'd like to track. Here's an example with dates far into the future (as of 2021 😄):

[[events]]
name = "summer break"
time = 1892160000 # these are unix timestamps in seconds

[[events]]
name = "wwdc"
time = 1892250000

[[events]]
name = "memorial day weekend"
time = 1892170000
  1. Now run countdown in your shell and you're all set 🎉
Commit count: 39

cargo fmt