lib/canals/cli/session.rb in canals-0.9.0 vs lib/canals/cli/session.rb in canals-0.9.1
- old
+ new
@@ -40,13 +40,20 @@
on_all_canals_in_session(:restart) do |canal|
trestart(canal)
end
end
- desc "stop", "Stop the current session"
+ desc "stop", "Stop the current session (stops and removes from session)"
def stop
on_all_canals_in_session(:stop) do |canal|
tstop(canal)
+ end
+ end
+
+ desc "suspend", "Suspend the current session (stops and doesn't remove from session)"
+ def suspend
+ on_all_canals_in_session(:suspend) do |canal|
+ tstop(canal, remove_from_session: false)
end
end
no_commands do
def on_all_canals_in_session(command, &block)