-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
Affects Version/s: 1.1.1
-
Component/s: Java Shell, Shell API
-
None
-
Not Needed
Problem Statement/Rationale
While using mongosh via external java program, the output of the commands are affected by the cyclomatic complexity.
Steps to Reproduce
I put an example code piece for you to experiment and see the difference.
Expected Results
I would normally expect to get same output from both command executions (As it was the case in legacy mongo shell implementation).
Actual Results
Additional indentation dots and following space are appearing as part of output.
Additional Notes
Maybe using ".editor" mode can work as a workaround. But not sure if this is expected behaviour or not. Just creating this ticket for clarification.