Making Asking Questions Easier
Add new block syntax for InteractivePrompt
CLI::UI::Prompt.ask("What is your choice?") do |handler|
handler.option("Choice 1") { |c| puts "Choice 1" }
handler.option("Choice 2") { |c| puts "Choice 2" }
end
Add new block syntax for InteractivePrompt
CLI::UI::Prompt.ask("What is your choice?") do |handler|
handler.option("Choice 1") { |c| puts "Choice 1" }
handler.option("Choice 2") { |c| puts "Choice 2" }
end