Is it possible to make on_finished run even if we're running a standard click command without entering the click shell? My cli has resources that are opened when running a command and need to be closed after the single command is finished. It's easy in shell mode having on_finished, so would be nice if non-shell single commands could piggy-back and use this as well.
Is it possible to make
on_finished
run even if we're running a standard click command without entering the click shell? My cli has resources that are opened when running a command and need to be closed after the single command is finished. It's easy in shell mode havingon_finished
, so would be nice if non-shell single commands could piggy-back and use this as well.