@CliCommand(value = UNDEPLOY_STREAM_ALL, help = "Un-deploy all previously deployed stream") public String undeployAllStreams( @CliOption(key = "force", help = "bypass confirmation prompt", unspecifiedDefaultValue = "false", specifiedDefaultValue = "true") boolean force) { if (force || "y".equalsIgnoreCase(userInput.promptWithOptions("Really undeploy all streams?", "n", "y", "n"))) { streamOperations().undeployAll(); return String.format("Un-deployed all the streams"); } else { return ""; } }
@CliCommand(value = UNDEPLOY_STREAM_ALL, help = "Un-deploy all previously deployed stream") public String undeployAllStreams( @CliOption(key = "force", help = "bypass confirmation prompt", unspecifiedDefaultValue = "false", specifiedDefaultValue = "true") boolean force) { if (force || "y".equalsIgnoreCase(userInput.promptWithOptions("Really undeploy all streams?", "n", "y", "n"))) { streamOperations().undeployAll(); return String.format("Un-deployed all the streams"); } else { return ""; } }