[debug] windows PowerShell script to run and test the client
This commit is contained in:
parent
9f63ace39c
commit
b654042d57
17
win-client.ps1
Normal file
17
win-client.ps1
Normal 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
|
Loading…
x
Reference in New Issue
Block a user