Skip to content

Commit 468ca56

Browse files
committed
Update README
1 parent d39ed20 commit 468ca56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

cmd/latest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func 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 {

0 commit comments

Comments
 (0)