bin/snapshot in snapshot-0.4.11 vs bin/snapshot in snapshot-0.4.12

- old
+ new

@@ -48,9 +48,22 @@ path = (Snapshot::Helper.fastlane_enabled?? './fastlane' : '.') Snapshot::SnapfileCreator.create(path) end end + command :reset_simulators do |c| + c.syntax = 'snapshot reset_simulators' + c.description = "This will remove all your existing simulators and re-create new ones" + c.option '-i', '--ios String', String, 'The iOS Version you want to use' + + c.action do |args, options| + version = options.ios || ENV["SNAPSHOT_IOS_VERSION"] || Snapshot::LatestIosVersion::VERSION + require 'snapshot/reset_simulators' + + Snapshot::ResetSimulators.clear_everything!(version) + end + end + default_command :run run! end end \ No newline at end of file