Skip to content

Commit

Permalink
Show dates when printing history (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingishb committed Mar 2, 2021
1 parent 5bb46c3 commit cf45d91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (

func main() {
app := cli.NewApp()
app.Version = "1.4.0"
app.Version = "1.4.1"
app.Usage = "simple ssm param store interface"
app.Flags = []cli.Flag{
cli.StringFlag{
Expand Down Expand Up @@ -233,7 +233,8 @@ func history(key string) ([]string, error) {
return []string{}, err
}
for _, v := range out.Parameters {
hist = append(hist, *v.Value)
date := *v.LastModifiedDate
hist = append(hist, fmt.Sprintf("(%s, %s)", date.Format("2006-01-02"), *v.Value))
}
if out.NextToken == nil {
break
Expand Down

0 comments on commit cf45d91

Please sign in to comment.