(ctx: click.Context, /, *args: t.Any, **kwargs: t.Any)
| 393 | |
| 394 | @click.pass_context |
| 395 | def decorator(ctx: click.Context, /, *args: t.Any, **kwargs: t.Any) -> t.Any: |
| 396 | if not current_app: |
| 397 | app = ctx.ensure_object(ScriptInfo).load_app() |
| 398 | ctx.with_resource(app.app_context()) |
| 399 | |
| 400 | return ctx.invoke(f, *args, **kwargs) |
| 401 | |
| 402 | return update_wrapper(decorator, f) # type: ignore[return-value] |
| 403 |
no test coverage detected