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 request] Add shell command completion autogeneration #537

Open
yermulnik opened this issue Jan 24, 2025 · 0 comments
Open

[Feature request] Add shell command completion autogeneration #537

yermulnik opened this issue Jan 24, 2025 · 0 comments
Assignees
Labels
enhancement Refactor existing code for better performance and quality

Comments

@yermulnik
Copy link
Collaborator

yermulnik commented Jan 24, 2025

fswitch already has around a dozen+ of command line arguments which is complicate to remember and operate by humans when necessary.
Would be great to look up and employ a Golang library to autogenerate shell command completions from code on the fly (e.g. tswitch --completion bash) that can be soaked into shell dynamically (e.g. . <(tfswitch --completion bash)).

Common shells that shell command completion is shipped for usually are: Bash, Zsh, and Fish.

Once implemented, update documentation with manual steps and Homebrew formulae to autogenerate and install shell command completions into common location.
Caveat: only @warrensbox has write access to https://github.com/warrensbox/homebrew-tap

@yermulnik yermulnik added the enhancement Refactor existing code for better performance and quality label Jan 24, 2025
@yermulnik yermulnik changed the title Add shell command completion autogeneration [Feature request] Add shell command completion autogeneration Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Refactor existing code for better performance and quality
Projects
None yet
Development

No branches or pull requests

2 participants