You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behavior is mostly currently achievable with result_callback that you can pass to Typer.callback or Typer.group. There are two deficiencies:
The command must be compound. There's no way to finalize a singular command. This makes sense, but it'd be nice if the interface uniformly worked.
result_callback is not class aware, so you have to jump through extra hoops to get access to self - namely you need to return it from your subcommands.
The text was updated successfully, but these errors were encountered:
bckohan
changed the title
Add a @finalize decorator for functions to be run on the result of all subroutines.
Add a @finalize decorator for functions to collect/operate on subroutine results.
Nov 20, 2024
For symmetry with @initialize
This behavior is mostly currently achievable with result_callback that you can pass to Typer.callback or Typer.group. There are two deficiencies:
The text was updated successfully, but these errors were encountered: