mirror of https://github.com/databricks/cli.git
custom rename to avoid break
This commit is contained in:
parent
71057774f0
commit
4755db4d70
|
@ -60,7 +60,7 @@ func (r Resolver) Resolve(ctx context.Context) (*Template, error) {
|
|||
templateName = TemplateName(r.TemplatePathOrUrl)
|
||||
}
|
||||
|
||||
// User should not directly select "custom" and instead should provide the
|
||||
// User should not directly select "custom..." and instead should provide the
|
||||
// file path or the Git URL for the template directly.
|
||||
if templateName == Custom {
|
||||
return nil, ErrCustomSelected
|
||||
|
|
|
@ -29,7 +29,7 @@ func TestTemplateResolverErrorsWhenPromptingIsNotSupported(t *testing.T) {
|
|||
|
||||
func TestTemplateResolverErrorWhenUserSelectsCustom(t *testing.T) {
|
||||
r := Resolver{
|
||||
TemplatePathOrUrl: "custom",
|
||||
TemplatePathOrUrl: "custom...",
|
||||
}
|
||||
|
||||
_, err := r.Resolve(context.Background())
|
||||
|
|
|
@ -31,7 +31,7 @@ const (
|
|||
// Custom represents any template that is not one of the above default
|
||||
// templates. It's a catch for any custom templates that customers provide
|
||||
// as a path or URL.
|
||||
Custom TemplateName = "custom"
|
||||
Custom TemplateName = "custom..."
|
||||
)
|
||||
|
||||
var allTemplates = []Template{
|
||||
|
|
|
@ -21,7 +21,7 @@ func TestTemplateOptions(t *testing.T) {
|
|||
{Name: "default-sql", Id: "The default SQL template for .sql files that run with Databricks SQL"},
|
||||
{Name: "dbt-sql", Id: "The dbt SQL template (databricks.com/blog/delivering-cost-effective-data-real-time-dbt-and-databricks)"},
|
||||
{Name: "mlops-stacks", Id: "The Databricks MLOps Stacks template (github.com/databricks/mlops-stacks)"},
|
||||
{Name: "custom", Id: "Bring your own template"},
|
||||
{Name: "custom...", Id: "Bring your own template"},
|
||||
}
|
||||
assert.Equal(t, expected, options())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue