From f3359a5760f7169ea354f77ccb09d131ae6b1227 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Thu, 19 Apr 2018 08:42:17 -0700 Subject: [PATCH] Add "Running ... " output to nomulus tool confirming commands This makes it more clear than an operation is actually pending, rather than nothing changing after pressing "Y" to run the command. The prompt now looks like when you press "Y" and "N", respectively: Perform this command? (y/N): Running ... Perform this command? (y/N): Command aborted. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=193521084 --- java/google/registry/tools/ConfirmingCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/google/registry/tools/ConfirmingCommand.java b/java/google/registry/tools/ConfirmingCommand.java index f2d00c5cb..1b3274182 100644 --- a/java/google/registry/tools/ConfirmingCommand.java +++ b/java/google/registry/tools/ConfirmingCommand.java @@ -37,6 +37,7 @@ public abstract class ConfirmingCommand implements Command { // nothing further. return; } else if (force || promptForYes("Perform this command?")) { + System.out.println("Running ... "); System.out.println(execute()); printLineIfNotEmpty(postExecute()); } else {