Liking cljdoc? Tell your friends :D

clj-reload.core


carry-keepsclj

(carry-keeps from to)
source

initclj

(init opts)

Options:

:dirs :: [<string> ...] - where to look for files :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
: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

nses-matchclj

(nses-match nses re)
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

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

× close