I was setting up Nile using the CLI earlier today and ran into a HTTP error. I just re-ran the command. But I also wanted to check why there was no retry. I checked the codebase since it's open and noticed there are a bunch of things we can fix.
- There's a lot of duplicated code in the error handling.
- No input validation on commands.
- And just some general modernization that could make things more robust.
Thinking of adding retry logic to API calls, consolidating some duplicate error handling code, and maybe adding input validation for common commands like database and tenant creation. These are some small yet incremental improvements that would make the CLI more reliable.
Would love to work on this if you're open to it!