Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
/spend 1h
  • Loading branch information
Goutte committed Mar 26, 2023
1 parent ffe63f5 commit 786a306
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,29 @@ Build & Run & Install
make
make sum
make install
make install-optimized
```

> `upx` is used to reduce the binary size in `make install-optimized`.

Contribute
----------

Merge requests are welcome. Make sure you recorded the time you `/spent` in your commit messages. :)


### Ideas Stash

> You can pick and start any, or do something else entirely.
- `gitime sum --since <commit>`
- `gitime sum --since <tag>`
- `gitime sum --since <datetime>`
- Configure `DaysInOneWeek` and so forth using `ENV`, or config file
- `curl install.sh | bash`
- Parse stdin `git log | gitime sum`
- flatpak
- git extension
- docker
- i18n _(godspeed)_
18 changes: 16 additions & 2 deletions gitime/gitime_test_data.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
collect:

- rule: Example from the README
message: |
feat: implement a nice feature
Careful, it's still sharp.
/spend 5h30
expected:
months: 0
weeks: 0
days: 1
hours: 6
minutes: 330
string: 5 hours 30 minutes

- rule: No /spend nor /spent command found
message: |
feat: test using a YAM%L provider
Expand Down Expand Up @@ -175,13 +189,13 @@ collect:
string_raw: 0.1 month 0.3 week 10.5 days 0.6 hour 111.5 minutes
string: 2 weeks 4 days 2 hours 27.5 minutes

- rule: Allow dates after the time
- rule: Allow (and ignore) dates after the time
message: |
/spend 2h 2023-03-25T14:10:12
expected:
minutes: 120

- rule: Allow arbitrary content after the time
- rule: Allow (and ignore) arbitrary content after the time
message: |
/spend 2h working like a donkey
expected:
Expand Down

0 comments on commit 786a306

Please sign in to comment.