CLI to count down days until events.
Project description
days-until
This CLI helps you count down to upcoming events. Inspired by year-progress
.
Installation and Usage
$ git clone https://github.com/alichtman/days_until.git
$ cd days_until
$ python3 setup.py install
$ days-until --add # The config file will be created the first time you run the program
$ days-until
Options
$ days-until [OPTIONS]
Count down days until events.
Written by Aaron Lichtman. https://github.com/alichtman/days_until
Options:
--add Prompt to add events.
--clean Remove events with end dates that have passed.
--compress Compress output when printing.
--config Print path to config file.
--remove Interactively remove events.
-v, --version Print version and author info.
-h, -help, --help Show this message and exit.
Configuration and Events
days-until
reads its configuration from $XDG_CONFIG_HOME/.config/days-until.yaml
or ~/.config/days_until.yaml
.
The easiest way to add events is with the --add
option. If you'd like to add the events manually, they should be in the following format:
event1:
event: "Final Day in Switzerland"
dates:
start: "2019-12-7"
end: "2019-12-20"
The top level keys (event1
in this example) don't matter as long as they're unique. I tend to use event{N}
, but anything will work.
event
is a string name for the event.start
is the date on from which you'd like progress to be tracked.end
is the date of the event.
All dates should be in YYYY-MM-DD
format.
To remove entries interactively, use the --remove
option.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
days_until-0.0.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for days_until-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3544622726c5c35d24a652cc7b70b7926c67403fa76204dedcc48f667fff649 |
|
MD5 | c89833f19ca0df2cd9cd1de2c724a26a |
|
BLAKE2b-256 | b86427130dd10ad6c21dc3bb30641907588cd46ca4892513dd1d4dca2bfc51b3 |