Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add command completion #410
For reference: Click Docs
Testing
For testing, you would need to either generate your own shell completion scripts or download the ones in this commit.
The Curl command in the docs would not work yet as the files are not available in the repo.
Note
As an alternative to providing the user with pre-generated shell completion scripts, one ca add the following to ~/.bashrc / ~/.zshrc, which would result in generating the shell completion scripts every time a shell is started:
However, this does not work properly for MVT in a virtual env, as the mvt commands are only available once the env is activated, not upon opening the shell. It would then result in an error:
bash: mvt-ios: command not found
We could consider adding the
eval
instructions for users who installed MVT system-wide.