Skip to content

Commit

Permalink
Show 'databricks bundle init' template in CLI prompt (databricks#725)
Browse files Browse the repository at this point in the history
~(this should be changed to target `main`)~

This reveals the template from
databricks#686 in CLI prompts for once databricks#686
and databricks#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>
Signed-off-by: Arpit Jasapara <arpit.jasapara@databricks.com>
  • Loading branch information
4 people authored and arpitjasa-db committed Sep 7, 2023
1 parent e67d788 commit 44ea6d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/bundle/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
Expand All @@ -68,7 +66,6 @@ func newInitCommand() *cobra.Command {
if err != nil {
return err
}
*/
}

if !isRepoUrl(templatePath) {
Expand Down

0 comments on commit 44ea6d1

Please sign in to comment.