From cf45d91a2f0053588c33576cb34af4a16dac91ab Mon Sep 17 00:00:00 2001 From: Brian King Date: Tue, 2 Mar 2021 11:14:29 -0500 Subject: [PATCH] Show dates when printing history (#29) --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4a55144..2ebda30 100644 --- a/main.go +++ b/main.go @@ -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{ @@ -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