simpler more generic processTranscript'
This allows using functions that generate CreateProcess and passing the result to processTranscript', which is more flexible, and also simpler than the old interface. This commit was sponsored by Riku Voipio.
This commit is contained in:
parent
f07af03018
commit
113b10cdc9
3 changed files with 15 additions and 17 deletions
|
@ -379,7 +379,7 @@ sshAuthTranscript sshinput opts input = case inputAuthMethod sshinput of
|
|||
geti f = maybe "" T.unpack (f sshinput)
|
||||
|
||||
go extraopts environ = processTranscript'
|
||||
(askPass environ) "ssh" (extraopts ++ opts)
|
||||
(askPass environ (proc "ssh" (extraopts ++ opts)))
|
||||
-- Always provide stdin, even when empty.
|
||||
(Just (fromMaybe "" input))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue