click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

Allow exiting the click_repl from a click command #24

Closed oridistor closed 6 years ago

oridistor commented 7 years ago

If I'm aware in click that I'm in a click_repl mode (if I have any indication that I left for myself), I want to sometimes be able to exit the click_repl from my code.

The way I think this solution can be acheived is by being able to let the ExitReplException in the the context try catch also break the loop.