File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ $ changelog init --compare-url=https://github.com/myorg/myrepo/compare/abcdef...
34
34
$ changelog added " Initial commit"
35
35
# Create release
36
36
$ changelog release 0.1.0
37
+ # Show latest release number
38
+ $ changelog latest
39
+ => 0.1.0
37
40
```
38
41
39
42
## Installation
@@ -76,6 +79,7 @@ Available Commands:
76
79
fmt Reformat the change log file
77
80
help Help about any command
78
81
init Initializes a new changelog
82
+ latest Show latest released version number
79
83
release Change Unreleased to [version]
80
84
removed Add item under 'Removed' section
81
85
security Add item under 'Security' section
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
func newLatestCmd (iostreams * IOStreams ) * cobra.Command {
13
13
return & cobra.Command {
14
14
Use : "latest" ,
15
- Short : "Show latest version" ,
15
+ Short : "Show latest released version number " ,
16
16
Long : `Show version number for the top (released) entry in the changelog` ,
17
17
Args : cobra .ExactArgs (0 ),
18
18
RunE : func (cmd * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments