custom rename to avoid break

This commit is contained in:
Shreyas Goenka 2025-01-06 18:27:15 +05:30
parent 71057774f0
commit 4755db4d70
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -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())
}