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