From 2d091896f4f63f52dd3d4565a1c220f2b1b71a9e Mon Sep 17 00:00:00 2001 From: anatoly Date: Fri, 23 Oct 2015 06:22:01 -0400 Subject: [PATCH] todo for ns filtering --- src/mount/mount.clj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mount/mount.clj b/src/mount/mount.clj index 8508195..ea84900 100644 --- a/src/mount/mount.clj +++ b/src/mount/mount.clj @@ -52,6 +52,14 @@ (throw (RuntimeException. (str "could not stop [" name "] due to") t))))) (alter-meta! var assoc :started? false))) +;; TODO: narrow down by {:mount {:include-ns +;; {:starts-with ["app.foo" "bar.baz"] +;; :nss ["app.nyse" "app.tools.datomic"] } +;; :exclude-ns +;; {:starts-with ["dont.want.this" "app.debug"] +;; :nss ["dev" "app.stage"]}}} +;; +;; would come from lein dev profile (defn- f-states [f order] (->> (all-ns) (mapcat ns-interns)