astro-cli
astro-cli copied to clipboard
Table select functions (workspace, cluster, deployment) could all be refactored into one TableSelect helper function to make maintainability more robust
- [x] I have checked that a similar feature request does not already exist.
✍️ Is your feature request related to a problem? Please describe.
🧩 Describe the solution you'd like
Will most likely need Generics from Go 1.18 to make this work properly, just something to keep in mind!
i.e. if I'm doing a deployment selection I want to return a deployment, but if I'm doing a workspace selection I'll want to return a workspace. Additionally, the input list is going to have to its type parameterized as well.
🤔 Describe alternatives you've considered
💡 Additional context
Original Ticket - https://github.com/astronomer/cloud-cli/issues/278
Closed as the implementation was done.