sandeep-mst commented on code in PR #22522: URL: https://github.com/apache/pulsar/pull/22522#discussion_r1570389366
########## pulsar-client-tools/src/main/java/org/apache/pulsar/shell/PulsarShell.java: ########## @@ -414,18 +441,36 @@ public List<String> readCommand() { return; } execState = ExecState.RUNNING; - final String line = words.stream().collect(Collectors.joining(" ")); - if (StringUtils.isBlank(line)) { + final String inputLine = words.stream().collect(Collectors.joining(" ")); + if (StringUtils.isBlank(inputLine)) { continue; } - if (isQuitCommand(line)) { + if (isQuitCommand(inputLine)) { + if (shellMode != ShellMode.DEFAULT){ + output(String.format("Exiting from %s shell mode", shellMode.command), terminal); + promptMessage = promptMessage.substring(0, promptMessage.lastIndexOf(shellMode.command) - 1); Review Comment: yes, updated it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org