hyperlane-monorepo icon indicating copy to clipboard operation
hyperlane-monorepo copied to clipboard

Interactive CLI config experience should incrementally validate schemas

Open yorhodes opened this issue 9 months ago • 0 comments

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.

yorhodes avatar May 09 '24 23:05 yorhodes