Use enums for default python template (#765)

## Changes
This PR changes schema to use the enum type for the default template
yes/no questions.

## Tests
Manually
This commit is contained in:
shreyas-goenka 2023-09-13 19:57:31 +02:00 committed by GitHub
parent 96d807fb85
commit be55310cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -7,26 +7,23 @@
"order": 1
},
"include_notebook": {
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
"type": "string",
"default": "yes",
"pattern": "^(yes|no)$",
"enum": ["yes", "no"],
"description": "Include a stub (sample) notebook in 'my_project/src'",
"order": 2
},
"include_dlt": {
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
"type": "string",
"default": "yes",
"pattern": "^(yes|no)$",
"enum": ["yes", "no"],
"description": "Include a stub (sample) DLT pipeline in 'my_project/src'",
"order": 3
},
"include_python": {
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
"type": "string",
"default": "yes",
"pattern": "^(yes|no)$",
"enum": ["yes", "no"],
"description": "Include a stub (sample) Python package 'my_project/src'",
"order": 4
}