Liking cljdoc? Tell your friends :D

clj-reload.core


carry-keepsclj

(carry-keeps from to)
source

classpath-dirsclj

(classpath-dirs)

Returns dirs that are currently on classpath

Returns dirs that are currently on classpath
sourceraw docstring

find-namespacesclj

(find-namespaces)
(find-namespaces regex)

Returns namespaces matching regex, or all of them

Returns namespaces matching regex, or all of them
sourceraw docstring

initclj

(init opts)

Options:

:dirs :: [<string> ...] - where to look for files :files :: #"<regex>" - which files to scan, defaults to #".*\.cljc?" :no-reload :: #{<symbol> ...} - list of namespaces to skip reload entirely :no-unload :: #{<symbol> ...} - list of namespaces to skip unload only. These will be loaded “on top” of previous state :unload-hook :: <symbol> - if function with this name exists in a namespace, it will be called before unloading. Default: 'before-ns-unload :reload-hook :: <symbol> - if function with this name exists in a namespace, it will be called after reloading. Default: 'after-ns-reload

Options:

:dirs        :: [<string> ...]  - where to look for files
:files       :: #"<regex>"    - which files to scan, defaults to #".*\\.cljc?"
:no-reload   :: #{<symbol> ...} - list of namespaces to skip reload entirely
:no-unload   :: #{<symbol> ...} - list of namespaces to skip unload only.
                                  These will be loaded “on top” of previous state
:unload-hook :: <symbol>        - if function with this name exists in a namespace,
                                  it will be called before unloading. Default: 'before-ns-unload
:reload-hook :: <symbol>        - if function with this name exists in a namespace,
                                  it will be called after reloading. Default: 'after-ns-reload
sourceraw docstring

keep-methodscljmultimethod

source

lockclj

source

reloadclj

(reload)
(reload opts)

Options:

:throw :: true | false - throw or return exception, default true :log-fn :: (fn [& args]) - fn to display unload/reload status :only :: :changed - default. Only reloads changed already loaded files | :loaded - Reload all loaded files | <Pattern> - Reload all nses matching this pattern | :all - Reload everything it can find in dirs

Returns map of what was reloaded

{:unloaded [<symbol> ...] :loaded [<symbol> ...]}

If anything fails, throws. If :throw false, return value will also have keys

{:failed <symbol> :exception <Throwable>}

Can be called multiple times. If reload fails, fix the error and call reload again

Options:

  :throw  :: true | false  - throw or return exception, default true
  :log-fn :: (fn [& args]) - fn to display unload/reload status
  :only   :: :changed      - default. Only reloads changed already loaded files
           | :loaded       - Reload all loaded files
           | <Pattern>     - Reload all nses matching this pattern
           | :all          - Reload everything it can find in dirs

Returns map of what was reloaded

  {:unloaded [<symbol> ...]
   :loaded   [<symbol> ...]}

If anything fails, throws. If :throw false, return value will also have keys

  {:failed    <symbol>
   :exception <Throwable>}

Can be called multiple times. If reload fails, fix the error and call `reload` again
sourceraw docstring

unloadclj

(unload)
(unload opts)

Same as reload, but does not loads namespaces back

Same as `reload`, but does not loads namespaces back
sourceraw docstring

with-lockcljmacro

(with-lock & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close