mirror of https://github.com/sbt/sbt.git
Add confirmation to API.
parent
1704580af4
commit
6736ef8488
|
|
@ -16,6 +16,9 @@ package sbt
|
||||||
sealed trait UIContext {
|
sealed trait UIContext {
|
||||||
/** Prompts the user for input, optionally with a mask for characters. */
|
/** Prompts the user for input, optionally with a mask for characters. */
|
||||||
def readLine(prompt: String, mask: Boolean): Option[String]
|
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?
|
// TODO - Ask for input with autocomplete?
|
||||||
|
|
||||||
/** Sends an event out to all registered event listeners. */
|
/** Sends an event out to all registered event listeners. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue