Skip to content

Error when using CommandCollection #39

Open
@HarryR

Description

@HarryR
  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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions