Skip to content

Commit 3bc29f9

Browse files
committed
docs: update readme, update flag helper text
updates the helper text for the parsed flags and change readme to include the said flags
1 parent 2249122 commit 3bc29f9

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,33 @@ The usage is pretty simple, this cli tool assumes that you use [commitlint stand
4949
`refactor: <message>` - performance / code clean up changes or total BLOC changes
5050
`fix: <message>` - for fixes (self-explanatory)
5151

52+
53+
### Supported Flags (as of v0.0.4-dev.2)
54+
55+
The below mentioned are the flags supported by the current branch and older tags might not support the flags
56+
or certain inputs in flags, use the `-h` flag to see what's supported on the version you are using.
57+
58+
```sh
59+
Usage of commitlog:
60+
-e string
61+
commit hash string / revision (ex. HEAD, HEAD^, HEAD~2)
62+
to stop collecting commit message at
63+
-i string
64+
commit types to be includes (default "ci,refactor,docs,fix,feat,test,chore,other")
65+
-p string
66+
path to the repository, points to the current working directory by default (default ".")
67+
-s string
68+
commit hash string / revision (ex. HEAD, HEAD^, HEAD~2)
69+
to start collecting commit messages from
70+
-skip
71+
if true will skip trying to classify and just give a list of changes
72+
```
73+
5274
5375
### Example Output (from this exact repository)
5476
5577
```sh
56-
> commitlog path/to/repository
78+
> commitlog
5779
```
5880
5981
```markdown
@@ -71,10 +93,8 @@ b0f1b1d2bc4265cb72b70b3ae5b60f8e65f47b12 - initial commit
7193
7294
## Current Limitations
7395
74-
- No Tests added so is probably unstable right now
96+
- No Tests added so is probably unstable right now ( If you'd like to help writing tests, feel free to raise a PR)
7597
76-
## Note
77-
The current code base is a prototypal solution and while usable will be heavily refactored to follow best practices, if you'd like to take help of a better codebase if you are creating your own fork then you can take a refactored codebase from [https://github.com/percybolmer/commitlog](https://github.com/percybolmer/commitlog)
7898
7999
## Contribution
80100

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ type commitTypeInclusions [][]byte
2323

2424
func main() {
2525
var repoPath = flag.String("p", ".", "path to the repository, points to the current working directory by default")
26-
var startCommit = flag.String("s", "", "commit hash string start collecting commit messages from")
27-
var endCommit = flag.String("e", "", "commit hash string to stop collecting commit message at")
28-
var inclusionFlags = flag.String("i", "ci,refactor,docs,fix,feat,test,chore,other", "commit types to be includes, defaults to CI FIX REFACTOR FEATURE DOCS CHORE TEST OTHER")
26+
var startCommit = flag.String("s", "", "commit hash string / revision (ex. HEAD, HEAD^, HEAD~2) \n to start collecting commit messages from")
27+
var endCommit = flag.String("e", "", "commit hash string / revision (ex. HEAD, HEAD^, HEAD~2) \n to stop collecting commit message at")
28+
var inclusionFlags = flag.String("i", "ci,refactor,docs,fix,feat,test,chore,other", "commit types to be includes")
2929
var skipClassification = flag.Bool("skip", false, "if true will skip trying to classify and just give a list of changes")
3030

3131
flag.Parse()

0 commit comments

Comments
 (0)