lib/travis/cli/monitor.rb in travis-1.8.14.travis.1156.9 vs lib/travis/cli/monitor.rb in travis-1.8.14.travis.1160.9
- old
+ new
@@ -7,9 +7,10 @@
description "live monitor for what's going on"
on('-m', '--my-repos', 'Only monitor my own repositories')
on('-r', '--repo SLUG', 'monitor given repository (can be used more than once)') do |c, slug|
c.repos << slug
+ c.send(:error, "SLUG should be of the form OWNER/REPO") unless slug.split('/').compact.size == 2
end
types = Tools::Notification::DEFAULT.map(&:to_s).join(", ")
on('-n', '--[no-]notify [TYPE]', "send out desktop notifications (optional type: #{types})") do |c, type|
c.setup_notification(type)