ollie/hours
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Hours
A Ruby progress-bar tool showing how many hours you have worked, should have worked and will have worked. It's actually nicer than this GitHub, it has colors and isn't that big.
$ ./hours.rb --help
Options:
--hours, -h <i>: Hours you worked this month (default: 0)
--per-day, -p <i>: Hours you work per day (default: 6)
--days-total, -t <i>: Total workdays override
--days-passed, -d <i>: Passed workdays override
--rate, -r <f>: Your income rate per hour
--exclude-today, -e: Exclude today
--test, -s: Run visual test :)
--help, -l: Show this message
$ ./hours.rb 40
+--------------------+-----+
| Hours! |
+--------------------+-----+
| Workdays total | 21 |
| Workdays passed | 10 |
| Hours per day | 6 |
| Hours total | 126 |
| Hours progressed | 60 |
| Your hours | 40 |
| Hours missing | 20 |
| Hours approximated | 84 |
+--------------------+-----+
Total hours
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓60▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░66░░░░░░░░░░░░░░░░░░░░░░░░░
Your hours
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓40▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒20▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░66░░░░░░░░░░░░░░░░░░░░░░░░░
End-of-month approximation
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓84▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░42░░░░░░░░░░░░░░░░