This function is launched as a final callback once subcommands have run. It executes some final functions and then terminates. The argument exit_code is the result of the previously executed click command.
(ctx: click.Context, exit_code: int, *args: Any, **kwargs: Any)
| 239 | @cli.result_callback() |
| 240 | @click.pass_context |
| 241 | def before_exit(ctx: click.Context, exit_code: int, *args: Any, **kwargs: Any) -> None: |
| 242 | """ |
| 243 | This function is launched as a final callback once subcommands have run. |
| 244 | It executes some final functions and then terminates. |
| 245 | The argument exit_code is the result of the previously executed click command. |
| 246 | """ |
| 247 | ctx_obj = ContextObj.get(ctx) |
| 248 | _display_deprecation_message(ctx_obj.config) |
| 249 | _check_for_updates(ctx_obj.check_for_updates) |
| 250 | sys.exit(exit_code) |
| 251 | |
| 252 | |
| 253 | def force_utf8_output(): |
nothing calls this directly
no test coverage detected