mirror of https://github.com/databricks/cli.git
f2408eda62
## Changes This PR adds retry logic to user input prompts, prompting users again if the value does not match the requirements specified in the bundle template schema. ## Tests Manually. Here's an example UX. The first prompt expects an integer and the second one a string made only from the letters "defg" ``` shreyas.goenka@THW32HFW6T cli % cli bundle init ~/mlops-stack Please enter an integer [123]: abc Validation failed: "abc" is not a integer Please enter an integer [123]: 123 Please enter a string [dddd]: apple Validation failed: invalid value for input_root_dir: "apple". Only characters the 'd', 'e', 'f', 'g' are allowed ``` |
||
---|---|---|
.. | ||
templates/default-python | ||
testdata | ||
config.go | ||
config_test.go | ||
file.go | ||
file_test.go | ||
helpers.go | ||
helpers_test.go | ||
materialize.go | ||
materialize_test.go | ||
renderer.go | ||
renderer_test.go |