#81: stop-except & start-without to take all states

This commit is contained in:
anatoly 2017-04-06 17:35:35 -04:00
parent 6ae0255677
commit 095eb81488

View file

@ -358,7 +358,9 @@
(let [all (set (find-all-states))
states (map var-to-str states)
states (remove (set states) all)]
(apply stop states)))
(if-not (empty? states)
(apply stop states)
{:stopped #{}})))
(defn start-with-args [xs & states]
(reset! -args xs)
@ -383,5 +385,7 @@
(let [app (set (all-without-subs))
states (map var-to-str states)
without (remove (set states) app)]
(apply start without))
(if-not (empty? without)
(apply start without)
{:started #{}}))
(start)))