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

Error when using CommandCollection #39

Open
HarryR opened this issue Feb 13, 2018 · 2 comments
Open

Error when using CommandCollection #39

HarryR opened this issue Feb 13, 2018 · 2 comments

Comments

@HarryR
Copy link

HarryR commented Feb 13, 2018

  File "/usr/local/lib/python2.7/dist-packages/click_repl/__init__.py", line 169, in repl
    available_commands = group_ctx.command.commands
AttributeError: 'CommandCollection' object has no attribute 'commands'

This is implemented as list_commands in CommandCollection: https://github.com/pallets/click/blob/master/click/core.py#L1225

list_commands is also implemented in Group: https://github.com/pallets/click/blob/master/click/core.py#L1197

This provides a consistent interface to both types.

@untitaker
Copy link
Collaborator

Yup, we can use this. Patches welcome. :)

@untitaker
Copy link
Collaborator

@ssbarnea how is your thing related to click-repl?

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

No branches or pull requests

2 participants