diff --git a/diff.go b/diff.go index 588d341..364597e 100644 --- a/diff.go +++ b/diff.go @@ -43,8 +43,8 @@ func (app *App) Diff(opt DiffOption) error { newJSON, _ := marshalJSON(newFunc) if ds := diff.Diff(string(latestJSON), string(newJSON)); ds != "" { - fmt.Println(color.RedString("---", app.functionArn(name))) - fmt.Println(color.GreenString("+++", *opt.FunctionFilePath)) + fmt.Println(color.RedString("---" + app.functionArn(name))) + fmt.Println(color.GreenString("+++" + *opt.FunctionFilePath)) fmt.Println(coloredDiff(ds)) } return nil diff --git a/go.mod b/go.mod index 52249c1..076ad13 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go v1.40.52 github.com/fatih/color v1.13.0 github.com/fujiwara/logutils v1.1.0 - github.com/fujiwara/tfstate-lookup v0.4.0 + github.com/fujiwara/tfstate-lookup v0.4.2 github.com/go-test/deep v1.0.7 github.com/google/go-jsonnet v0.17.0 github.com/hashicorp/go-envparse v0.0.0-20200406174449-d9cfd743a15e diff --git a/go.sum b/go.sum index 583c5ad..d99d8ce 100644 --- a/go.sum +++ b/go.sum @@ -120,8 +120,8 @@ github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTg github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fujiwara/logutils v1.1.0 h1:JAYmqW40d/ZjzouB01sfZiaTxwNe4hwmB6lLajZqm1s= github.com/fujiwara/logutils v1.1.0/go.mod h1:pdb/Uk70rjQWEmFm/OvYH7OG8meZt1fEIqC0qZbvro4= -github.com/fujiwara/tfstate-lookup v0.4.0 h1:AaubXvolethCndWpZ+c/Sibm6J4SCIlSxcxvn6cYon4= -github.com/fujiwara/tfstate-lookup v0.4.0/go.mod h1:F56Bz3W497ZJA0ijFLVgcYeAVuhtbzvV6/hMtu6f2Ek= +github.com/fujiwara/tfstate-lookup v0.4.2 h1:RmhlHIMLVqNWHxaBasap+L5LO7pKorAbpIVQrktYCzY= +github.com/fujiwara/tfstate-lookup v0.4.2/go.mod h1:F56Bz3W497ZJA0ijFLVgcYeAVuhtbzvV6/hMtu6f2Ek= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=