Restart the daemon.
()
| 1040 | @daemon_app.command("restart") |
| 1041 | @_catch_daemon_start_error |
| 1042 | def daemon_restart() -> None: |
| 1043 | """Restart the daemon.""" |
| 1044 | from .client import _wait_for_daemon, start_daemon, stop_daemon |
| 1045 | |
| 1046 | _typer.echo("Stopping daemon...") |
| 1047 | stop_daemon() |
| 1048 | |
| 1049 | _typer.echo("Starting daemon...") |
| 1050 | proc = start_daemon() |
| 1051 | _wait_for_daemon(proc=proc) |
| 1052 | _typer.echo("Daemon restarted.") |
| 1053 | |
| 1054 | |
| 1055 | @daemon_app.command("stop") |
nothing calls this directly
no test coverage detected