Utilities for resolving and loading namespaces
Utilities for resolving and loading namespaces
(ensure-namespace ns)
Require ns
(no-op if already loaded). Return the symbol if successful,
and nil
if this fails.
Require `ns` (no-op if already loaded). Return the symbol if successful, and `nil` if this fails.
(has-tests? ns)
Return a truthy value if the namespace has any vars with :test
metadata.
Return a truthy value if the namespace has any vars with `:test` metadata.
(inlined-dependency? namespace)
Returns true if the namespace matches one of our, or eastwood's, inlined dependencies.
Returns true if the namespace matches one of our, or eastwood's, inlined dependencies.
(internal-namespace? namespace & [prefixes])
Returns true if the namespace matches the given prefixes.
Returns true if the namespace matches the given prefixes.
(load-project-namespaces)
Require and return all namespaces validly defined in the current project.
Require and return all namespaces validly defined in the current project.
(loaded-namespaces & [filter-regexps])
Return all loaded namespaces, except those coming from inlined dependencies.
filter-regexps
is used to filter out namespaces matching regexps.
Return all loaded namespaces, except those coming from inlined dependencies. `filter-regexps` is used to filter out namespaces matching regexps.
(loaded-project-namespaces)
Return all loaded namespaces defined in the current project.
Return all loaded namespaces defined in the current project.
(ns-path ns)
Return the path to a file containing namespace ns
.
ns
can be a Namespace object or the name of a namespace.
Return the path to a file containing namespace `ns`. `ns` can be a Namespace object or the name of a namespace.
(project-namespaces)
Find all namespaces defined in source paths within the current project.
Find all namespaces defined in source paths within the current project.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close