Ruby ruby 怎么实现交互式 shell 脚本

chinalegend · June 23, 2013 · Last by blacktulip replied at June 23, 2013 · 3097 hits

ruby 怎么实现交互式 shell 脚本

我要实现一个 git clone 相关命令的脚本,支持 ssh、https、git 三种协议的脚本

怎么?难道 ruby 没有类似 expect 的 gem 包吗?

gets.chomp ?

You need to Sign in before reply, if you don't have an account, please Sign up first.