hyperlane-monorepo
hyperlane-monorepo copied to clipboard
Interactive CLI config experience should incrementally validate schemas
Problem
The current interactive CLI commands do not validate the input data upon user input.
Instead, the user provides all of the required fields and then the CLI command fails if the input data is invalid.
Solution
Continue to prompt user for input until the input data is valid according to the zod schema's corresponding field.
Nice to Have
- [ ] Create (or use an existing) library that interactively prompts for an arbitrary zod schema and returns the validated data.