You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/modules/ROOT/pages/nrepl-api/ops.adoc
+37-68
Original file line number
Diff line number
Diff line change
@@ -1024,74 +1024,6 @@ Returns::
1024
1024
1025
1025
1026
1026
1027
-
=== `refresh`
1028
-
1029
-
Reloads all changed files in dependency order.
1030
-
1031
-
Required parameters::
1032
-
{blank}
1033
-
1034
-
Optional parameters::
1035
-
* `:after` The namespace-qualified name of a zero-arity function to call after reloading.
1036
-
* `:before` The namespace-qualified name of a zero-arity function to call before reloading.
1037
-
* `:dirs` List of directories to scan. If no directories given, defaults to all directories on the classpath.
1038
-
* `:nrepl.middleware.print/buffer-size` The size of the buffer to use when streaming results. Defaults to 1024.
1039
-
* `:nrepl.middleware.print/keys` A seq of the keys in the response whose values should be printed.
1040
-
* `:nrepl.middleware.print/options` A map of options to pass to the printing function. Defaults to ``nil``.
1041
-
* `:nrepl.middleware.print/print` A fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options].
1042
-
* `:nrepl.middleware.print/quota` A hard limit on the number of bytes printed for each value.
1043
-
* `:nrepl.middleware.print/stream?` If logical true, the result of printing each value will be streamed to the client over one or more messages.
1044
-
1045
-
1046
-
Returns::
1047
-
* `:error` A sequence of all causes of the thrown exception when ``status`` is ``:error``.
1048
-
* `:error-ns` The namespace that caused reloading to fail when ``status`` is ``:error``.
1049
-
* `:reloading` List of namespaces that will be reloaded.
1050
-
* `:status` ``:ok`` if reloading was successful; otherwise ``:error``.
1051
-
1052
-
1053
-
1054
-
=== `refresh-all`
1055
-
1056
-
Reloads all files in dependency order.
1057
-
1058
-
Required parameters::
1059
-
{blank}
1060
-
1061
-
Optional parameters::
1062
-
* `:after` The namespace-qualified name of a zero-arity function to call after reloading.
1063
-
* `:before` The namespace-qualified name of a zero-arity function to call before reloading.
1064
-
* `:dirs` List of directories to scan. If no directories given, defaults to all directories on the classpath.
1065
-
* `:nrepl.middleware.print/buffer-size` The size of the buffer to use when streaming results. Defaults to 1024.
1066
-
* `:nrepl.middleware.print/keys` A seq of the keys in the response whose values should be printed.
1067
-
* `:nrepl.middleware.print/options` A map of options to pass to the printing function. Defaults to ``nil``.
1068
-
* `:nrepl.middleware.print/print` A fully-qualified symbol naming a var whose function to use for printing. Must point to a function with signature [value writer options].
1069
-
* `:nrepl.middleware.print/quota` A hard limit on the number of bytes printed for each value.
1070
-
* `:nrepl.middleware.print/stream?` If logical true, the result of printing each value will be streamed to the client over one or more messages.
1071
-
1072
-
1073
-
Returns::
1074
-
* `:error` A sequence of all causes of the thrown exception when ``status`` is ``:error``.
1075
-
* `:error-ns` The namespace that caused reloading to fail when ``status`` is ``:error``.
1076
-
* `:reloading` List of namespaces that will be reloaded.
1077
-
* `:status` ``:ok`` if reloading was successful; otherwise ``:error``.
1078
-
1079
-
1080
-
1081
-
=== `refresh-clear`
1082
-
1083
-
Clears the state of the refresh middleware. This can help recover from a failed load or a circular dependency error.
1084
-
1085
-
Required parameters::
1086
-
{blank}
1087
-
1088
-
Optional parameters::
1089
-
{blank}
1090
-
1091
-
Returns::
1092
-
{blank}
1093
-
1094
-
1095
1027
=== `resource`
1096
1028
1097
1029
Obtain the path to a resource.
@@ -1777,3 +1709,40 @@ Returns::
1777
1709
* `:status` done
1778
1710
* `:cider/log-update-consumer` The consumer that was updated.
1779
1711
1712
+
1713
+
1714
+
=== `cider.clj-reload/reload`
1715
+
1716
+
Reloads all changed files in dependency order,
1717
+
using the io.github.tonsky/clj-reload library. It is bundled with cider-nrepl.
1718
+
If that dependency is already in present your project and clj-reload.core/init has been invoked beforehand,
1719
+
those configured directories will be honored.
1720
+
1721
+
Required parameters::
1722
+
{blank}
1723
+
1724
+
Optional parameters::
1725
+
{blank}
1726
+
1727
+
Returns::
1728
+
* `:error` A sequence of all causes of the thrown exception when ``status`` is ``:error``.
1729
+
* `:progress` Description of current namespace being unloaded/loaded.
1730
+
* `:status` ``:ok`` if reloading was successful; otherwise ``:error``.
1731
+
1732
+
1733
+
1734
+
=== `cider.clj-reload/reload-all`
1735
+
1736
+
Reloads all files in dependency order.
1737
+
1738
+
Required parameters::
1739
+
{blank}
1740
+
1741
+
Optional parameters::
1742
+
{blank}
1743
+
1744
+
Returns::
1745
+
* `:error` A sequence of all causes of the thrown exception when ``status`` is ``:error``.
1746
+
* `:reloading` Description of current namespace being unloaded/loaded.
1747
+
* `:status` ``:ok`` if reloading was successful; otherwise ``:error``.
0 commit comments