Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add kubectl ws -i #3098

Open
1 task
mjudeikis opened this issue Mar 25, 2024 · 7 comments
Open
1 task

feature: add kubectl ws -i #3098

mjudeikis opened this issue Mar 25, 2024 · 7 comments
Labels
cli good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@mjudeikis
Copy link
Contributor

Feature Description

We should support kubectl ws -i for interactive browsing the tree

Proposed Solution

use something like https://github.com/manifoldco/promptui or https://github.com/rivo/tview/

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

@mjudeikis mjudeikis added kind/feature Categorizes issue or PR as related to a new feature. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. cli labels Mar 25, 2024
@mjudeikis
Copy link
Contributor Author

Similar:
#2309

@embik
Copy link
Member

embik commented Mar 28, 2024

@embik
Copy link
Member

embik commented Jun 13, 2024

Small note, I wrote a bash-based prototype for this functionality. It's available at https://github.com/embik/kubectl-switch-ws. I don't think the bash-based version cuts it for integrating it into kubectl ws, but maybe we can get away with using fzf over our own full TUI.

@rakshitgondwal
Copy link

Hey Folks! Is this issue open for grabs?

@embik
Copy link
Member

embik commented Sep 7, 2024

Hey @rakshitgondwal, it is, yes!

@rakshitgondwal
Copy link

Hey @embik, have we come to any conclusion on what framework to use for the TUI? I've worked with Bubbletea before but I would be open to implementing any other as well.

@embik
Copy link
Member

embik commented Sep 10, 2024

No real conclusion, I think. We are looking for a solution that is lightweight and fast, and no one has too many thoughts on the matter. Something that I was wondering is if running echo "option1\noption2\n" | fzf in a shell exec within the code might be the "best" solution (basically implement https://github.com/embik/kubectl-switch-ws in Go and get the data via Go clients instead of kubectl calls), but I'm open to whatever works and looks and feels nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants