#81: stop-except & start-without to take all states
This commit is contained in:
parent
6ae0255677
commit
095eb81488
1 changed files with 6 additions and 2 deletions
|
|
@ -358,7 +358,9 @@
|
||||||
(let [all (set (find-all-states))
|
(let [all (set (find-all-states))
|
||||||
states (map var-to-str states)
|
states (map var-to-str states)
|
||||||
states (remove (set states) all)]
|
states (remove (set states) all)]
|
||||||
(apply stop states)))
|
(if-not (empty? states)
|
||||||
|
(apply stop states)
|
||||||
|
{:stopped #{}})))
|
||||||
|
|
||||||
(defn start-with-args [xs & states]
|
(defn start-with-args [xs & states]
|
||||||
(reset! -args xs)
|
(reset! -args xs)
|
||||||
|
|
@ -383,5 +385,7 @@
|
||||||
(let [app (set (all-without-subs))
|
(let [app (set (all-without-subs))
|
||||||
states (map var-to-str states)
|
states (map var-to-str states)
|
||||||
without (remove (set states) app)]
|
without (remove (set states) app)]
|
||||||
(apply start without))
|
(if-not (empty? without)
|
||||||
|
(apply start without)
|
||||||
|
{:started #{}}))
|
||||||
(start)))
|
(start)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue