dep/doc: add tab completion via argcomplete#1065
Conversation
+ add `argcomplete` to the dependency for tab completion capability. This package is light (only depends on pure Python), and available on pip and conda-forge (as noarch package). - requirements.txt: add argcomplete - setup.py: move argcomplete from optional to required + docs/installation.md: add "tab complete sub-commands" as another sub-section in Post-Installation Setup.
avalentino
left a comment
There was a problem hiding this comment.
The changes are good to me.
Probably you may want to point out that, on Mac OSX, argcomplete >= 3.0 works perfectly on the default shell zsh. In that case no workaround is needed.
|
I was surprised that you can call mintpy functions using |
These come from the Mintpy entry points, which is the typical way a python package can make a command line tool available when you |
This nice feature was introduced in version 1.5.0 by @avalentino. It's very similar to the latest GMT. I have not advertised it heavily yet, as it may be confusing to users who are used to the |
Description of proposed changes
add
argcompleteto the dependency for tab completion capability, which is implemented in Single entrypoint with sub-commands #823 and described in Suggestions for MintPy #1041. This package is light (only depends on pure Python), and available on pip and conda-forge (as noarch package).docs/installation.md: add "tab complete sub-commands" as another sub-section in Post-Installation Setup.
Reminders