Clear the terminal on start when the :clear option is given

This commit is contained in:
Rémy Coutable 2011-06-08 12:16:36 +02:00
parent 952d4b4b81
commit ddc6f26b91

View File

@ -34,6 +34,7 @@ module Guard
run { run_on_change_for_all_guards(files) } if Watcher.match_files?(guards, files) run { run_on_change_for_all_guards(files) } if Watcher.match_files?(guards, files)
end end
UI.clear if options[:clear]
UI.info "Guard is now watching at '#{Dir.pwd}'" UI.info "Guard is now watching at '#{Dir.pwd}'"
guards.each { |guard| supervised_task(guard, :start) } guards.each { |guard| supervised_task(guard, :start) }
listener.start listener.start