-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add short flag for displaying only first line of commit * update README * update short flag comment * add comment for Cut usage on commit messages
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,25 @@ This leverages your `git log`, so works best when paired with clear and concise | |
The easiest way to install is through the `go` command. | ||
|
||
```bash | ||
go install github.com/jdockerty/[email protected].0 | ||
go install github.com/jdockerty/today@latest # or tag, e.g. @v0.1.1 | ||
``` | ||
|
||
Or by downloading a pre-compiled binary on the [releases](https://github.com/jdockerty/today/releases) page. | ||
|
||
## Usage | ||
|
||
Simply pass a local directory that you wish to view the work for, this also works over multiple directories, as work is not always confined to a single project. | ||
Simply pass a local directory that you wish to view the work for. This also supports multiple directories, as work is not always confined to a single project. | ||
|
||
```bash | ||
today work/very-important-business-app | ||
|
||
today work/api work/frontend work/new-important-serivce # You've been very busy | ||
|
||
today --since 48h work/api # You missed standup yesterday | ||
|
||
today --short work/fun-poc # Only display first line of the commit message | ||
``` | ||
|
||
Modifying the time range is done using the `--since` flag, valid time units for this conform to [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration). The main use case for this is to extend or reduce the number of hours you wish to search across, but you may get incredibly precise if you so desire. | ||
|
||
Using the `--short` flag is useful when commit messages are incredibly descriptive, spanning below the fold to explain the intention of a change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters