File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 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...
3434$ changelog added " Initial commit"
3535# Create release
3636$ changelog release 0.1.0
37+ # Show latest release number
38+ $ changelog latest
39+ => 0.1.0
3740```
3841
3942## Installation
@@ -76,6 +79,7 @@ Available Commands:
7679 fmt Reformat the change log file
7780 help Help about any command
7881 init Initializes a new changelog
82+ latest Show latest released version number
7983 release Change Unreleased to [version]
8084 removed Add item under 'Removed' section
8185 security Add item under 'Security' section
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212func newLatestCmd (iostreams * IOStreams ) * cobra.Command {
1313 return & cobra.Command {
1414 Use : "latest" ,
15- Short : "Show latest version" ,
15+ Short : "Show latest released version number " ,
1616 Long : `Show version number for the top (released) entry in the changelog` ,
1717 Args : cobra .ExactArgs (0 ),
1818 RunE : func (cmd * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments