Sha256: 57c6c27ed822766f295ec77b46645485ffd0f895f132e52a10d91d2a7f758e59

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

module Birdwatcher
  module Commands
    class Exit < Birdwatcher::Command
      self.meta = {
        :description => "Exit Birdwatcher",
        :names       => %w(exit quit q),
        :usage       => "exit"
      }

      def run
        output "Goodbye."
        exit
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
birdwatcher-0.4.0 lib/birdwatcher/commands/exit.rb
birdwatcher-0.3.1 lib/birdwatcher/commands/exit.rb
birdwatcher-0.1.0 lib/birdwatcher/commands/exit.rb