clarkperkins / click-shell

An extension to click that easily turns your click app into a shell utility
BSD 3-Clause "New" or "Revised" License
88 stars 17 forks source link

feat(EXCEPTIONS): custom exceptions to override default error handling #33

Closed niall-byrne closed 1 year ago

niall-byrne commented 3 years ago

I wanted to add some functionality that would let me override the default return to shell logic, in certain circumstances. (ie. when I press CTRL-BREAK on a spawned ansible process managed by this CLI, I wanted to exit the app and halt everything.).

I thought there might be other use cases for this, so I put together this feature. I hope it's useful.

(Great package, thanks!)

niall-byrne commented 3 years ago

Rebased with latest changes.

niall-byrne commented 3 years ago

Added documentation.

niall-byrne commented 1 year ago

I'm going to go with another solution.