Skip to content

Commit

Permalink
Don't show this template just yet
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkats-db committed Sep 1, 2023
1 parent aea403f commit 391ab24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/bundle/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 @@ -58,6 +57,9 @@ 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 @@ -66,6 +68,7 @@ func newInitCommand() *cobra.Command {
if err != nil {
return err
}
*/
}

if !isRepoUrl(templatePath) {
Expand Down

0 comments on commit 391ab24

Please sign in to comment.