Sha256: 700fef76cd006c1f3ef3f0bc87251188552a9278dee34e1b6a6b147b2c81a9ca

Contents?: true

Size: 857 Bytes

Versions: 7

Compression:

Stored size: 857 Bytes

Contents

# required for async_queue_add
require "pry"

require "guard"

module Guard
  module Commands
    class All
      def self.import
        Pry::Commands.create_command "all" do
          group "Guard"
          description "Run all plugins."

          banner <<-BANNER
          Usage: all <scope>

          Run the Guard plugin `run_all` action.

          You may want to specify an optional scope to the action,
          either the name of a Guard plugin or a plugin group.
          BANNER

          def process(*entries)
            scopes, unknown = Guard.state.session.convert_scope(entries)

            unless unknown.empty?
              output.puts "Unknown scopes: #{ unknown.join(", ") }"
              return
            end

            Guard.async_queue_add([:guard_run_all, scopes])
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
guard-2.12.4 lib/guard/commands/all.rb
guard-2.12.3 lib/guard/commands/all.rb
guard-2.12.2 lib/guard/commands/all.rb
guard-2.12.1 lib/guard/commands/all.rb
guard-2.12.0 lib/guard/commands/all.rb
guard-2.11.1 lib/guard/commands/all.rb
guard-2.11.0 lib/guard/commands/all.rb