Replies: 3 comments 1 reply
-
CliWrap doesn't add any key presses. What's more likely is that the target app doesn't account for the possibility that the input stream may be redirected. You can try to work around it by piping a never-resolving input: var input = PipeSource.Create(async (_, cancellationToken) =>
await Task.Delay(-1, cancellationToken)
);
var cmd = input | Cli.Wrap(...); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ether I do not know how to use it of it is not helping :(.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
We have command line app (using Nancy lib) which starts and then in console print "Click ENTER to close app".
Using CliWrap we starting this app by passing port argument only. App starts and stops immediately - looks like CliWrap passes, adds that "ENTER" key press and app closes.
How I could prevent this - that app would keep running?
Beta Was this translation helpful? Give feedback.
All reactions