MCPcopy
hub / github.com/httpie/cli / run_daemon_task

Function run_daemon_task

httpie/internal/daemon_runner.py:41–50  ·  view source on GitHub ↗
(env: Environment, args: List[str])

Source from the content-addressed store, hash-verified

39
40
41def 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

Callers 1

raw_mainFunction · 0.85

Calls 2

_get_suppress_contextFunction · 0.90
_parse_optionsFunction · 0.85

Tested by

no test coverage detected