Skip to content

completion for function #14

Closed
Closed

Description

@edmBernard

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

Activity

  1. dbieber commented on Mar 9, 2017

    @dbieber
    Collaborator

    Thank you for finding and reporting this issue.

  2. dbieber commented on Mar 12, 2017

    @dbieber
    Collaborator

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

  3. edmBernard commented on Mar 12, 2017

    @edmBernard
    Author

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

  4. self-assigned this
    on Mar 31, 2017
  5. dbieber commented on Mar 31, 2017

    @dbieber
    Collaborator

    Resolved by 9eb7886.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions