Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"

This reverts commit a598b878a5.
This commit is contained in:
Jörg Thalheim
2024-07-17 14:04:49 +02:00
parent 0518f875cd
commit 64956a7a0a
24 changed files with 116 additions and 104 deletions

View File

@@ -5,7 +5,7 @@ import time
from collections.abc import Iterator
from ..errors import ClanError
from ..nix import run_cmd
from ..nix import nix_shell
VMADDR_CID_HYPERVISOR = 2
@@ -25,8 +25,8 @@ def start_waypipe(cid: int | None, title_prefix: str) -> Iterator[None]:
if cid is None:
yield
return
waypipe = run_cmd(
["waypipe"],
waypipe = nix_shell(
["nixpkgs#waypipe"],
[
"waypipe",
"--vsock",