diff --git a/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md b/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md index 4707c76a8f..3414d8b308 100644 --- a/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md +++ b/acceptance/bundle/templates/default-python/classic/output/my_default_python/README.md @@ -1,6 +1,6 @@ # my_default_python -The 'my_default_python' project was generated by using the default template. +The 'my_default_python' project was generated by using the default-python template. * `src/`: Python source code for this project. * `src/my_default_python/`: Shared Python code that can be used by jobs and pipelines. diff --git a/acceptance/bundle/templates/default-python/serverless/output/my_default_python/README.md b/acceptance/bundle/templates/default-python/serverless/output/my_default_python/README.md index 4707c76a8f..3414d8b308 100644 --- a/acceptance/bundle/templates/default-python/serverless/output/my_default_python/README.md +++ b/acceptance/bundle/templates/default-python/serverless/output/my_default_python/README.md @@ -1,6 +1,6 @@ # my_default_python -The 'my_default_python' project was generated by using the default template. +The 'my_default_python' project was generated by using the default-python template. * `src/`: Python source code for this project. * `src/my_default_python/`: Shared Python code that can be used by jobs and pipelines. diff --git a/acceptance/bundle/templates/lakeflow-pipelines/python/output/my_lakeflow_pipelines/README.md b/acceptance/bundle/templates/lakeflow-pipelines/python/output/my_lakeflow_pipelines/README.md index af884ca91a..3dee3a1f7b 100644 --- a/acceptance/bundle/templates/lakeflow-pipelines/python/output/my_lakeflow_pipelines/README.md +++ b/acceptance/bundle/templates/lakeflow-pipelines/python/output/my_lakeflow_pipelines/README.md @@ -1,6 +1,6 @@ # my_lakeflow_pipelines -The 'my_lakeflow_pipelines' project was generated by using the default template. +The 'my_lakeflow_pipelines' project was generated by using the lakeflow-pipelines template. * `src/`: Python source code for this project. * `resources/`: Resource configurations (jobs, pipelines, etc.) diff --git a/acceptance/bundle/templates/lakeflow-pipelines/sql/output/my_lakeflow_pipelines/README.md b/acceptance/bundle/templates/lakeflow-pipelines/sql/output/my_lakeflow_pipelines/README.md index d715967218..91027c1877 100644 --- a/acceptance/bundle/templates/lakeflow-pipelines/sql/output/my_lakeflow_pipelines/README.md +++ b/acceptance/bundle/templates/lakeflow-pipelines/sql/output/my_lakeflow_pipelines/README.md @@ -1,6 +1,6 @@ # my_lakeflow_pipelines -The 'my_lakeflow_pipelines' project was generated by using the default template. +The 'my_lakeflow_pipelines' project was generated by using the lakeflow-pipelines template. * `src/`: SQL source code for this project. * `resources/`: Resource configurations (jobs, pipelines, etc.) diff --git a/libs/template/templates/default-python/databricks_template_schema.json b/libs/template/templates/default-python/databricks_template_schema.json index 218578de28..98769e297a 100644 --- a/libs/template/templates/default-python/databricks_template_schema.json +++ b/libs/template/templates/default-python/databricks_template_schema.json @@ -2,6 +2,14 @@ "template_dir": "../default", "welcome_message": "Welcome to the default Python template for Databricks Asset Bundles!\n\nAnswer the following questions to customize your project.\nYou can always change your configuration in the databricks.yml file later.\n\nNote that {{workspace_host}} is used for initialization.\n(For information on how to change your profile, see https://docs.databricks.com/dev-tools/cli/profiles.html.)", "properties": { + "template_name": { + "//": "This property is always set to 'default-python'", + "skip_prompt_if": {}, + "type": "string", + "default": "default-python", + "description": "Template name for documentation", + "order": 0 + }, "project_name": { "type": "string", "default": "my_project", diff --git a/libs/template/templates/default/template/{{.project_name}}/README.md.tmpl b/libs/template/templates/default/template/{{.project_name}}/README.md.tmpl index 445e5f8290..bca68edc2f 100644 --- a/libs/template/templates/default/template/{{.project_name}}/README.md.tmpl +++ b/libs/template/templates/default/template/{{.project_name}}/README.md.tmpl @@ -4,7 +4,7 @@ {{- $has_python_package_dir := and (or (eq .include_python "yes") (eq .include_job "yes") (eq .include_pipeline "yes")) (not (eq .lakeflow_only "yes"))}} {{- $is_lakeflow := eq .lakeflow_only "yes"}} -The '{{.project_name}}' project was generated by using the default template. +The '{{.project_name}}' project was generated by using the {{.template_name}} template. * `src/`: {{if eq .language "sql"}}SQL{{else}}Python{{end}} source code for this project. {{- if $has_python_package_dir}} diff --git a/libs/template/templates/lakeflow-pipelines/databricks_template_schema.json b/libs/template/templates/lakeflow-pipelines/databricks_template_schema.json index 153145390e..02b0188cc9 100644 --- a/libs/template/templates/lakeflow-pipelines/databricks_template_schema.json +++ b/libs/template/templates/lakeflow-pipelines/databricks_template_schema.json @@ -2,6 +2,14 @@ "template_dir": "../default", "welcome_message": "Welcome to the template for Lakeflow Declarative Pipelines!\n\nPlease answer the below to tailor your project to your preferences.\nYou can always change your mind and change your configuration in the databricks.yml file later.\n\nNote that {{workspace_host}} is used for initialization\n(see https://docs.databricks.com/dev-tools/cli/profiles.html for how to change your profile).", "properties": { + "template_name": { + "//": "This property is always set to 'lakeflow-pipelines'", + "skip_prompt_if": {}, + "type": "string", + "default": "lakeflow-pipelines", + "description": "Template name for documentation", + "order": -1 + }, "lakeflow_only": { "//": "This property is set by default to adjust this template for Lakeflow Pipelines", "skip_prompt_if": {}, diff --git a/libs/template/templates/pydabs/databricks_template_schema.json b/libs/template/templates/pydabs/databricks_template_schema.json index f3b67e2737..0266ec7424 100644 --- a/libs/template/templates/pydabs/databricks_template_schema.json +++ b/libs/template/templates/pydabs/databricks_template_schema.json @@ -2,6 +2,14 @@ "template_dir": "../default", "welcome_message": "Welcome to PyDABs template for Databricks Asset Bundles!\n\nAnswer the following questions to customize your project.\nYou can always change your configuration in the databricks.yml file later.\n\nNote that {{workspace_host}} is used for initialization.\n(For information on how to change your profile, see https://docs.databricks.com/dev-tools/cli/profiles.html.)", "properties": { + "template_name": { + "//": "This property is always set to 'pydabs'", + "skip_prompt_if": {}, + "type": "string", + "default": "pydabs", + "description": "Template name for documentation", + "order": 0 + }, "project_name": { "type": "string", "default": "my_project",