Skip to content

click v7 breaks click_repl #50

@mgdelmonte

Description

@mgdelmonte

click_repl works with click==6.7 but upgrading to click==7.0 breaks it. Sample code:

from __future__ import print_function
import click
import click_repl

@click.group()
def cli():
    print("in cli")

@cli.command()
def test():
    print("in test")

@cli.command()
def repl():
    click_repl.repl(click.get_current_context())

if __name__ == '__main__':
    cli()

Running with click v6.7, the repl works. With click 7.0, the repl exits after the first command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions