astro-cli icon indicating copy to clipboard operation
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

Open kushalmalani opened this issue 2 years ago • 1 comments

  • [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

kushalmalani avatar May 26 '22 19:05 kushalmalani

Original Ticket - https://github.com/astronomer/cloud-cli/issues/278

kushalmalani avatar May 26 '22 19:05 kushalmalani

Closed as the implementation was done.

wei-astronomer avatar Mar 09 '23 06:03 wei-astronomer