lib/guard/commands/notification.rb
# frozen_string_literal: true
require "pry"
require "guard/notifier"
module Guard
module Commands
class Notification
def self.import
Pry::Commands.create_command "notification" do
group "Guard"
description "Toggles the notifications."
banner <<-BANNER
Usage: notification
Toggles the notifications on and off.
BANNER
def process # rubocop:disable Lint/NestedMethodDefinition
Notifier.toggle
end
end
end
end
end
end