[TxMt] subversion bundle, handling SSL keys with passwords
dharple at generalconsumption.org
Mon Sep 4 20:19:40 UTC 2006
On Sep 4, 2006, at 9:44 PM, Allan Odgaard wrote:
> The actions in the Subversion bundle are all calling the svn
> executable and parsing the output. The commands would need to parse
> the request for the password, use something like CocoaDialog to
> prompt the user, and then give that back to svn.
> While I imagine such thing would be fragile, it should be possible.
Look in to using /usr/bin/expect if you would like to do that. There
is a [ruby library] to do it as well:
PTY.spawn("svn command…") do |read, write, pid|
read.expect(/password: /, 0.1) do # timeout of 0.1 seconds
pass = prompt_for_password()
More information about the textmate