Sha256: 3b374015e12491a0f905b694c3c9fc485490b3e9d0ddd40ce698c1b7eee2d778

Contents?: true

Size: 613 Bytes

Versions: 10

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Pennyworth
  module CLI
    module Actions
      module System
        # Handles the system error action.
        class Error < Sod::Action
          include Import[:io]

          description "Render Alfred system errors script filter."

          on "--system_errors"

          def initialize(processor: Processor.for_system_errors, **)
            super(**)
            @processor = processor
          end

          def call(*) = io.puts processor.call.to_json

          private

          attr_reader :processor
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pennyworth-17.8.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.7.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.6.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.5.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.4.1 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.4.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.3.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.2.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.1.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-17.0.0 lib/pennyworth/cli/actions/system/error.rb