diff --git a/libs/template/resolver.go b/libs/template/resolver.go index 8d1b26d8d..16b2e692b 100644 --- a/libs/template/resolver.go +++ b/libs/template/resolver.go @@ -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 diff --git a/libs/template/resolver_test.go b/libs/template/resolver_test.go index 9fde4e9e9..c94548d59 100644 --- a/libs/template/resolver_test.go +++ b/libs/template/resolver_test.go @@ -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()) diff --git a/libs/template/template.go b/libs/template/template.go index 31c6e2814..2cb60af47 100644 --- a/libs/template/template.go +++ b/libs/template/template.go @@ -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{ diff --git a/libs/template/template_test.go b/libs/template/template_test.go index a51da4973..a2221f766 100644 --- a/libs/template/template_test.go +++ b/libs/template/template_test.go @@ -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()) }