diff options
| author | Teddy Wing | 2018-01-27 00:31:57 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-01-31 20:47:10 +0100 | 
| commit | 873325ebce6d0451263d115a8f02f40e0a6fbd40 (patch) | |
| tree | 861fada27872332705c59c41b8cf045f86bd57fe /Rakefile | |
| parent | cea2bbe0d1b2c9629d7fab397093856580a9e099 (diff) | |
| download | hcl-log-for-past-days--squashed.tar.bz2 | |
Add date argument to `log` commandlog-for-past-days--squashed
Adds an optional date argument to the `log` command that can be
specified just before the task alias.
Some examples from @skoppelmanCC:
    hcl log yesterday @documentation +2 Ran spellcheck
    hcl log 3 days ago @wireframes +3.5
    hcl log last friday @admin +1 filed timesheets
Commands#log:
Copy over the contents of `Commands#start` and replace `task.start` with
`task.add`. This allows us to log the time without actually starting a
timer (and thus having to subsequently stop that timer).
command_test.rb(#test_start):
Update expected method call arguments with `spent_at`. Now that we're
passing in `spent_at`, the expected arguments should include it.
command_test.rb(#test_log_failure):
Delete this test because I've rewritten the `Commands#log` method to no
longer use timers.
utility_test.rb: Add tests for `#get_date`
Fixes #83.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions
