nebari icon indicating copy to clipboard operation
nebari copied to clipboard

[ENH] - re-prompt user during guided init

Open pmeier opened this issue 2 years ago • 1 comments

Feature description

While running nebari init --guided-init, one of the first things that one has to put in is a project name. There are some requirements listed, but if one puts in something that violates those, you are greeted by a ValueError and the process terminates.

At this point one has to start from scratch. Since we are already validating here, IMO it would be a lot better UX to just re-prompt the user. For example:

 🪴  Next, give your Nebari instance a project name. This name is what your Kubernetes cluster will be referred to as.

        The project name must adhere to the following requirements:
        - Letters from A to Z (upper and lower case) and numbers
        - Maximum accepted length of the name string is 16 characters
        - Should NOT start with the string `aws`


   What project name would you like to use? fancy!-project-name

Sorry, that name violates the requirements.

        The project name must adhere to the following requirements:
        - Letters from A to Z (upper and lower case) and numbers
        - Maximum accepted length of the name string is 16 characters
        - Should NOT start with the string `aws`

   What project name would you like to use?

Value and/or benefit

Less frustration.

Anything else?

No response

pmeier avatar May 18 '23 07:05 pmeier

i think this could've been solved ever since regex validation was added right at the project name input?

exitflynn avatar Mar 31 '24 23:03 exitflynn