prompt abstract method

Future<int> prompt(
  1. String message,
  2. List<String> choices
)

Prompt the user for input.

The message and choices are displayed to the user and the index of the chosen option is returned.

If this environmment is non-interactive (such as when running in a test) this method should throw NonInteractiveBuildException.

Implementation

Future<int> prompt(String message, List<String> choices);