(env: Environment, args: List[str])
| 39 | |
| 40 | |
| 41 | def run_daemon_task(env: Environment, args: List[str]) -> ExitStatus: |
| 42 | options = _parse_options(args) |
| 43 | |
| 44 | assert options.daemon |
| 45 | assert options.task_id in DAEMONIZED_TASKS |
| 46 | with redirect_stdout(env.devnull), redirect_stderr(env.devnull): |
| 47 | with _get_suppress_context(env): |
| 48 | DAEMONIZED_TASKS[options.task_id](env) |
| 49 | |
| 50 | return ExitStatus.SUCCESS |
no test coverage detected