Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README

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░░░░░░░░░░░░░░░░

About

A Ruby progress-bar tool showing how many hours you have worked, should have worked and will have worked.

Resources

Releases

No releases published
You can’t perform that action at this time.