Mix.Shell.IO.yes-question-mark

You're seeing just the function yes-question-mark, go back to Mix.Shell.IO module for more information.

Prints a message and asks the user if they want to proceed.

The user must press Enter or type one of "y", "yes", "Y", "YES" or "Yes".

Examples

if Mix.shell().yes?("Are you sure?") do
  # do something...
end