aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-02-12Merge branch 'implement-list-modules'Teddy Wing
2018-02-12harvester: Implement the `--list-modules` flagTeddy Wing
When given with a project (project must come first in the argument list), a list of all the modules (known as "tasks" in Harvest speak) will be printed to the console, filtered from a list fetched by 'hcl'. With no project argument, all tasks for all projects will be printed.
2018-01-31Add Homebrew formulaTeddy Wing
Add a formula to enable easy installation through Homebrew. Include some installation documentation in the README.
2018-01-31Add READMEv0.0.1Teddy Wing
Include a description, usage information, prerequisite requirements, and license info.
2018-01-31Add license (GNU GPLv3+)Teddy Wing
2018-01-28harvester: Use a default time of 7 hoursTeddy Wing
If no time is passed in, default it to 7 hours.
2018-01-28Add harvester.bash-completionTeddy Wing
A Bash completion function to complete project file names. Doesn't work with the `--project=` form as I couldn't figure out how to get it to do that in an easy way so finally decided not to bother because I don't use that form anyway.
2018-01-27harvester(hcl_log): Call `hcl` and log timeTeddy Wing
2018-01-27harvester: Construct arguments to 'hcl'Teddy Wing
Add a new function `hcl_log` that turns the project, time, date, and description arguments into the format the 'hcl' program expects.
2018-01-27harvester(main): Delete old commented codeTeddy Wing
This was an initial idea for command line argument parsing, but the `case` statement turned out to be better.
2018-01-27harvester: Print usage on `--help`Teddy Wing
2018-01-27harvester: Delete `get_value` functionTeddy Wing
Not using this. I had added it as a possible way to handle both `-p` and `--project=aproject`-style variables at the same time, but it didn't seem like I'd be able to do that, which is why I now have two case branches per option.
2018-01-27Add 'harvester'Teddy Wing
Initial work on a Bash script that will become the Timetasker for Harvest (using the 'hcl' command line utility). Here we set up some basic option parsing thanks to this Stack Overflow answer from 6EQUJ5: https://stackoverflow.com/questions/22394407/handling-flags-for-a-shell-script-without-getopts/22395652#22395652 In it, a way to parse command-line options is described that works for both short and long flags. We'll be using these values to call out to 'hcl'.