autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

[pyenv] pyenv-virtualenv suggestions not working.

Open nikhilbadyal opened this issue 3 years ago • 2 comments

Sanity checks

  • [X] My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion 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.

nikhilbadyal avatar Feb 10 '22 15:02 nikhilbadyal

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.

mschrage avatar Feb 22 '22 04:02 mschrage

sadly, they are not under a common virtualenvs umbrella. Commands added by pyenv-virtualenv are at same level with pyenv.

nikhilbadyal avatar Feb 26 '22 08:02 nikhilbadyal