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 <andrew.nester@databricks.com>
Co-authored-by: PaulCornellDB <paul.cornell@databricks.com>
Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
This commit is contained in:
Lennart Kats (databricks) 2023-09-05 06:57:01 -07:00 committed by GitHub
parent 8c2cc07f7b
commit e533f9109a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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) {