From b654042d57c31a55bc7908f938380f0bcc21ac6f Mon Sep 17 00:00:00 2001 From: ddidderr Date: Fri, 8 Nov 2024 22:58:30 +0100 Subject: [PATCH] [debug] windows PowerShell script to run and test the client --- win-client.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 win-client.ps1 diff --git a/win-client.ps1 b/win-client.ps1 new file mode 100644 index 0000000..3d90d45 --- /dev/null +++ b/win-client.ps1 @@ -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