[debug] windows PowerShell script to run and test the client

This commit is contained in:
ddidderr 2024-11-08 22:58:30 +01:00
parent 9f63ace39c
commit b654042d57
Signed by: ddidderr
GPG Key ID: 3841F1C27E6F0E14

17
win-client.ps1 Normal file
View File

@ -0,0 +1,17 @@
# Set environment variable
$env:RUST_LOG = "info,lanspread_client=debug,lanspread_proto=debug"
# Define a function to simulate the input sequence
function Simulate-Input {
while ($true) {
Start-Sleep -Milliseconds 100
"list"
Start-Sleep -Milliseconds 100
"get 1"
Start-Sleep -Milliseconds 100
"get 25"
}
}
# Run cargo command with piped input from the Simulate-Input function
Simulate-Input | cargo run -p lanspread-client -- $args