Harvest CLI tool.
# output today's time
harvesttool
Tested in Python 3 but may work in Python 2.
Clone this repository, then:
pip install -r requirements.txt
Then run one of the following:
- Add a symlink:
pushd /usr/local/bin && ln -s PATH/harvesttool.py harvesttool && popd
- Alternatively, you can add an alias:
alias harvesttool="python PATH/harvesttool.py"
The configuration can be one of the following:
~/.harvest/config.json
~/.harvest.json
~/.harvest.yml
Configuration should be structured roughly like:
auth:
user: jane
pass: some_password
host: example
This file should be restricted to 0600
.
config.list
: output configurationconfig.formatters
: list available formattersconfig.sources
: list configuration sources used
timesheet.today
: output today's timetimesheet.week
: output this week's timetimesheet.billable
: output today's billable timetimesheet.total
: output today's total time