From 554d9917c035b8589235496afe43edda745ae8d5 Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Fri, 1 Jul 2022 11:49:29 -0500 Subject: [PATCH] feat: make 'templates update [name]' optional (#2761) - If the name is not specified the current working directory name is used or the name specified by "--directory". This reflects 'templates create" behavior. --- cli/templateupdate.go | 13 ++++++--- cli/templateupdate_test.go | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/cli/templateupdate.go b/cli/templateupdate.go index fcbba2b122..15b2c512fe 100644 --- a/cli/templateupdate.go +++ b/cli/templateupdate.go @@ -3,6 +3,7 @@ package cli import ( "fmt" "os" + "path/filepath" "time" "github.com/briandowns/spinner" @@ -24,8 +25,8 @@ func templateUpdate() *cobra.Command { ) cmd := &cobra.Command{ - Use: "update