-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
completion option for zsh #64
Comments
I don't follow -- you replaced a colon with a different colon? |
He changed the semi column with a semi column followed by a space. It seems to work but I have some weird autocompletion problem after the first argument, I don't know if this is the normal behavior though. (I cannot autocomplete other arguments or path after the first argument is selected) |
Hey guys, is ZSH auto completion support planned? Thanks for a followup. |
Ran into same issue. unrecognized modifier `C' |
Related issue google#64
Related issue #64 Co-authored-by: Max Hacker <[email protected]>
The issue that triggered the
|
I confirm the zsh completion works with zsh on latest commit d44d33d . To test it, this is what I did: git clone [email protected]:google/python-fire.git
cd python-fire
python setup.py install Here's a simple example #!/usr/bin/env python
import fire
class Calculator:
def add(self, a, b):
return a + b
def subtract(self, a, b):
return a - b
def multiply(self, a, b):
return a * b
def divide(self, a, b):
return a / b
if __name__ == '__main__':
fire.Fire(Calculator) Named it calculator -- --completion > calculator-completion
source calculator-completion I confirm completions work fine: |
I'm using zsh 5.0.8 on OSX 10.11.6.
When I tried to run the generated completion bash for the basic example in README, I got the following error.
_complete-calculatorpy:4: unrecognized modifier
C'`I finally resolved this issue by replacing the
:
in the bash script with:
.An extra option for completion command will be helpful for zsh user.
The text was updated successfully, but these errors were encountered: