fix: harden remote voice wake CLI lookup

This commit is contained in:
Peter Steinberger
2025-12-07 04:43:00 +01:00
parent 050ebb3b19
commit 55e0086958
3 changed files with 76 additions and 11 deletions

View File

@@ -31,9 +31,9 @@ import Testing
}
@Test func commandPrefersCliInstallPaths() {
let command = VoiceWakeForwarder.commandWithCliPath("clawdis-mac status")
let prefix = "PATH=\(cliHelperSearchPaths.joined(separator: ":")):$PATH; "
#expect(command.hasPrefix(prefix))
#expect(command.contains("clawdis-mac status"))
let command = VoiceWakeForwarder.commandWithCliPath("clawdis-mac status", target: "user@host")
#expect(command.contains("PATH=\(cliHelperSearchPaths.joined(separator: ":")):$PATH"))
#expect(command.contains("for c in clawdis-mac /usr/local/bin/clawdis-mac /opt/homebrew/bin/clawdis-mac"))
#expect(command.contains("\"$CLI\" status"))
}
}