autocomplete
autocomplete copied to clipboard
[pyenv] pyenv-virtualenv suggestions not working.
Sanity checks
- [X] My issue relates to a specific CLI completion spec (e.g.
git checkoutis missing options ingitcompletion spec). If your issue is more general, please create your issue here: withfig/fig - [X] I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
- [ ] I would like to work on this.
What CLI tool does this relate to?
python
Which statement makes the most sense?
This completion spec isn't complete
Issue Details
I installed pyenv by brew install pyenv. Suggestion works fine. Fig shows me all command available here.
But pyenv virtualenv is a plugin for pyenv. When installed with brew install pyenv-virtualenv. Fig doesn't suggest commands which this plugin adds.
Like
pyenv virtualenvs is a command which is added in pyenv once we install pyenv-virtualenv. Similarly there are many commands which are added by pyenv-virtualenv but are not suggested by fig.
Hey @nikhilbadyal, are all of the virtualenvs commands underneath a common subcommand? If so, this is similar to artisan for php. You can see an example of how to implement this here using generateSpec and loadSpec.
sadly, they are not under a common virtualenvs umbrella. Commands added by pyenv-virtualenv are at same level with pyenv.