@CliCommand(value = DESTROY_STREAM_ALL, help = "Destroy all existing streams") public String destroyAllStreams( @CliOption(key = "force", help = "bypass confirmation prompt", unspecifiedDefaultValue = "false", specifiedDefaultValue = "true") boolean force) { if (force || "y".equalsIgnoreCase(userInput.promptWithOptions("Really destroy all streams?", "n", "y", "n"))) { streamOperations().destroyAll(); return "Destroyed all streams"; } else { return ""; } }
@CliCommand(value = DESTROY_STREAM_ALL, help = "Destroy all existing streams") public String destroyAllStreams( @CliOption(key = "force", help = "bypass confirmation prompt", unspecifiedDefaultValue = "false", specifiedDefaultValue = "true") boolean force) { if (force || "y".equalsIgnoreCase(userInput.promptWithOptions("Really destroy all streams?", "n", "y", "n"))) { streamOperations().destroyAll(); return "Destroyed all streams"; } else { return ""; } }