Skip to content
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 for function #14

Closed
edmBernard opened this issue Mar 9, 2017 · 4 comments
Closed

completion for function #14

edmBernard opened this issue Mar 9, 2017 · 4 comments
Assignees
Labels

Comments

@edmBernard
Copy link

The completion on function is missing

def add(self, first1, second1=123):
    print({"first1": first1, "second1": second1})
    return first1 + second1

def main():
    fire.Fire(add)

if __name__ == '__main__':
    main()

the completion file :

# DO NOT EDIT.
# This script is autogenerated by fire/completion.py.

_complete-test_firepy()
{
  local start cur opts
  COMPREPLY=()
  start="${COMP_WORDS[@]:0:COMP_CWORD}"
  cur="${COMP_WORDS[COMP_CWORD]}"

  opts=""



  COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
  return 0
}

complete -F _complete-test_firepy ./test_fire.py
@dbieber dbieber added the bug label Mar 9, 2017
@dbieber
Copy link
Member

dbieber commented Mar 9, 2017

Thank you for finding and reporting this issue.

@dbieber
Copy link
Member

dbieber commented Mar 12, 2017

[By the way, you probably don't want the argument 'self' in your add function.]

@edmBernard
Copy link
Author

yeah that because for example I just change a bit my previous example : #11 :)

@dbieber dbieber self-assigned this Mar 31, 2017
@dbieber
Copy link
Member

dbieber commented Mar 31, 2017

Resolved by 9eb7886.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants