lib/kuber_kit/ui/simple.rb in kuber_kit-0.4.4 vs lib/kuber_kit/ui/simple.rb in kuber_kit-0.4.5
- old
+ new
@@ -95,13 +95,12 @@
print_debug("Result", "---------------------------")
print_debug("Result", message)
print_debug("Result", "---------------------------")
end
- def prompt(text, options, &callback)
- print_info("Select", text)
+ def prompt(text, options)
+ print_info("Select", text + "(#{options.join(', ')})")
result = $stdin.gets.chomp
- callback.call(result) if callback
result
end
protected
def print_text(title, text, color:)
\ No newline at end of file