Method: VMC::Interactive#prompt
- Defined in:
- lib/vmc/cli/interactive.rb
#prompt(question, options) ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/vmc/cli/interactive.rb', line 46 def prompt(question, ) value = show_default() print "#{question}" print c("> ", :prompt) unless value.empty? print "#{d(value) + "\b" * value.size}" end end |