Add confirmation to API.

Josh Suereth 2014-01-15 12:54:52 -08:00
parent 1704580af4
commit 6736ef8488
1 changed files with 3 additions and 0 deletions

@ -16,6 +16,9 @@ package sbt
sealed trait UIContext {
/** Prompts the user for input, optionally with a mask for characters. */
def readLine(prompt: String, mask: Boolean): Option[String]
/** Ask the user to confirm something (yes or no) before continuing. */
def confirm(msg: String): Boolean
// TODO - Ask for input with autocomplete?
/** Sends an event out to all registered event listeners. */