From e533f9109a04295b50b2bc032f4f934e6bb25ead Mon Sep 17 00:00:00 2001 From: "Lennart Kats (databricks)" Date: Tue, 5 Sep 2023 06:57:01 -0700 Subject: [PATCH] Show 'databricks bundle init' template in CLI prompt (#725) ~(this should be changed to target `main`)~ This reveals the template from https://github.com/databricks/cli/pull/686 in CLI prompts for once #686 and #708 are merged. --------- Co-authored-by: Andrew Nester Co-authored-by: PaulCornellDB Co-authored-by: Pieter Noordhuis --- cmd/bundle/init.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/bundle/init.go b/cmd/bundle/init.go index bf68e921..9a11eb25 100644 --- a/cmd/bundle/init.go +++ b/cmd/bundle/init.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/databricks/cli/cmd/root" + "github.com/databricks/cli/libs/cmdio" "github.com/databricks/cli/libs/git" "github.com/databricks/cli/libs/template" "github.com/spf13/cobra" @@ -57,9 +58,6 @@ func newInitCommand() *cobra.Command { if len(args) > 0 { templatePath = args[0] } else { - return errors.New("please specify a template") - - /* TODO: propose to use default-python (once #708 is merged) var err error if !cmdio.IsOutTTY(ctx) || !cmdio.IsInTTY(ctx) { return errors.New("please specify a template") @@ -68,7 +66,6 @@ func newInitCommand() *cobra.Command { if err != nil { return err } - */ } if !isRepoUrl(templatePath) {