Make user prompts work with redirected stdin #1292
Merged
Conversation
The prompt is now implemented with Console.ReadLine() which works with redirected standard input
Should we clarify the questions, then? |
src/Paket.Core/Utils.fs
Outdated
@@ -280,7 +280,7 @@ let safeGetFromUrl (auth:Auth option, url : string, contentType : string) = | |||
with _ -> return None | |||
} | |||
|
|||
let readKey() = System.Console.ReadKey().KeyChar.ToString() | |||
let readKey() = System.Console.ReadLine().Trim() |
forki
Dec 4, 2015
Member
should be renamed
should be renamed
Haydabase
Dec 5, 2015
Author
Contributor
Fair enough, I've renamed to readAnswer
Fair enough, I've renamed to readAnswer
readKey was no longer an appropriate name since it now reads a whole line
forki
added a commit
that referenced
this pull request
Dec 6, 2015
Make user prompts work with redirected stdin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
As per issue #1291, the prompt is now implemented with Console.ReadLine() which works with redirected standard input