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 ``` |
||
---|---|---|
.. | ||
testdata | ||
extension.go | ||
instance.go | ||
instance_test.go | ||
schema.go | ||
schema_order.go | ||
schema_order_test.go | ||
schema_test.go | ||
utils.go | ||
utils_test.go | ||
validate_type.go | ||
validate_type_test.go |