Skip to content

Commit ac7dac7

Browse files
authored
adds isInteractive and quit (#236)
1 parent 0423dbc commit ac7dac7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/reference/methods.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,11 @@ Native Methods
827827

828828
- Description
829829

830+
* - ``isInteractive()``
831+
832+
- Returns a boolean indicating whether mongosh is running in
833+
interactive or script mode.
834+
830835
* - :manual:`load() </reference/method/load/>`
831836

832837
- Loads and runs a JavaScript file in the shell.
@@ -854,6 +859,10 @@ Native Methods
854859
> print(x)
855860
example text
856861

862+
* - ``quit()``
863+
864+
- Exits the current shell session.
865+
857866
* - ``sleep()``
858867

859868
- Suspends the |mongo| shell for a given period of time.

0 commit comments

Comments
 (0)