Azure / draft

A day 0 tool for getting your app on k8s fast
MIT License
492 stars 58 forks source link

adding logic for generating default app name #315

Closed Vidya2606 closed 1 week ago

Vidya2606 commented 3 weeks ago

Description

Prompt the user to enter the application name. Sanitize the user input. If the user does not provide any input, uses the current directory name as the default. Sanitize the directory name and ensure it meets the K8s label standards. If neither the user input nor the directory name meets the standards, default to "my-app".

If the user input is empty it defaults to the directory name

Screenshot 2024-06-07 at 11 56 42 AM

validator for app name

Screenshot 2024-06-07 at 5 24 57 PM

Fixes # (issue) Feature # (details)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s).

Checklist: