mirror of https://github.com/databricks/cli.git
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:
parent
96d807fb85
commit
be55310cc9
|
@ -7,26 +7,23 @@
|
||||||
"order": 1
|
"order": 1
|
||||||
},
|
},
|
||||||
"include_notebook": {
|
"include_notebook": {
|
||||||
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "yes",
|
"default": "yes",
|
||||||
"pattern": "^(yes|no)$",
|
"enum": ["yes", "no"],
|
||||||
"description": "Include a stub (sample) notebook in 'my_project/src'",
|
"description": "Include a stub (sample) notebook in 'my_project/src'",
|
||||||
"order": 2
|
"order": 2
|
||||||
},
|
},
|
||||||
"include_dlt": {
|
"include_dlt": {
|
||||||
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "yes",
|
"default": "yes",
|
||||||
"pattern": "^(yes|no)$",
|
"enum": ["yes", "no"],
|
||||||
"description": "Include a stub (sample) DLT pipeline in 'my_project/src'",
|
"description": "Include a stub (sample) DLT pipeline in 'my_project/src'",
|
||||||
"order": 3
|
"order": 3
|
||||||
},
|
},
|
||||||
"include_python": {
|
"include_python": {
|
||||||
"todo": "use an enum here, see https://github.com/databricks/cli/pull/668",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "yes",
|
"default": "yes",
|
||||||
"pattern": "^(yes|no)$",
|
"enum": ["yes", "no"],
|
||||||
"description": "Include a stub (sample) Python package 'my_project/src'",
|
"description": "Include a stub (sample) Python package 'my_project/src'",
|
||||||
"order": 4
|
"order": 4
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue