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