diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 60149ed865..3785c0dd91 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -5,6 +5,7 @@ ### CLI ### Bundles +* Add default project name and success message to default-scala template ([#4661](https://github.com/databricks/cli/pull/4661)) ### Dependency updates diff --git a/acceptance/bundle/templates/default-scala/output.txt b/acceptance/bundle/templates/default-scala/output.txt index c453290dc2..2dbf519692 100644 --- a/acceptance/bundle/templates/default-scala/output.txt +++ b/acceptance/bundle/templates/default-scala/output.txt @@ -5,4 +5,8 @@ Welcome to the default-scala template for Databricks Asset Bundles! A workspace was selected based on your current profile. For information about how to change this, see https://docs.databricks.com/dev-tools/cli/profiles.html. workspace_host: [DATABRICKS_URL] -✨ Successfully initialized template + +✨ Your new project has been created in the 'my_default_scala' directory! + +Please refer to the README.md file for "getting started" instructions. +See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html. diff --git a/libs/template/templates/default-scala/databricks_template_schema.json b/libs/template/templates/default-scala/databricks_template_schema.json index 9d23976821..04e918f362 100644 --- a/libs/template/templates/default-scala/databricks_template_schema.json +++ b/libs/template/templates/default-scala/databricks_template_schema.json @@ -3,6 +3,7 @@ "properties": { "project_name": { "type": "string", + "default": "my_scala_project", "description": "\nPlease provide a unique name for this project.\nproject_name", "order": 1, "pattern": "^[A-Za-z_][A-Za-z0-9-_]+$", @@ -54,5 +55,6 @@ "description": "\nPlease provide an initial schema during development.\ndefault_schema", "order": 6 } - } + }, + "success_message": "\n✨ Your new project has been created in the '{{.project_name}}' directory!\n\nPlease refer to the README.md file for \"getting started\" instructions.\nSee also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html." }