# File lib/guard/interactor.rb, line 27
    def start
      return if ENV["GUARD_ENV"] == 'test'

      if !@thread || !@thread.alive?
        @thread = Thread.new do
          while entry = $stdin.gets.chomp
            scopes, action = extract_scopes_and_action(entry)
            case action
            when :stop
              ::Guard.stop
            when :pause
              ::Guard.pause
            when :reload
              ::Guard::Dsl.reevaluate_guardfile if scopes.empty?
              ::Guard.reload(scopes)
            when :run_all
              ::Guard.run_all(scopes)
            end
          end
        end
      end
    end