Skip to content

Making Asking Questions Easier

Compare
Choose a tag to compare
@jules2689 jules2689 released this 15 May 14:03
· 954 commits to main since this release

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