mirror of
https://github.com/google/nomulus.git
synced 2025-07-27 21:16:25 +02:00
Remove mention of bazel run (#1340)
Also provides a workaround in the error message. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1340) <!-- Reviewable:end -->
This commit is contained in:
parent
df65fbc212
commit
243e8a6585
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ class CommandUtilities {
|
||||||
/** Prompts for yes/no input using promptText, defaulting to no. */
|
/** Prompts for yes/no input using promptText, defaulting to no. */
|
||||||
static boolean promptForYes(String promptText) {
|
static boolean promptForYes(String promptText) {
|
||||||
checkState(
|
checkState(
|
||||||
System.console() != null, "Unable to access stdin (are you running with bazel run?)");
|
System.console() != null,
|
||||||
|
"Unable to access stdin (are you running with `gradle registryTool`?), try using -f.");
|
||||||
String input = System.console().readLine(promptText + " (y/N): ");
|
String input = System.console().readLine(promptText + " (y/N): ");
|
||||||
// Null represents end-of-file (e.g. ^-D) so interpret that as a negative response.
|
// Null represents end-of-file (e.g. ^-D) so interpret that as a negative response.
|
||||||
return input != null && Ascii.toUpperCase(input).startsWith("Y");
|
return input != null && Ascii.toUpperCase(input).startsWith("Y");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue