Sha256: f958742998c914390ea1937ee991bc6ce3d7bff0a7c457e6349c6ee368eacb7b

Contents?: true

Size: 623 Bytes

Versions: 10

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Pennyworth
  module CLI
    module Actions
      module System
        # Handles the system errors action.
        class Errors < Sod::Action
          include Import[:kernel]

          description "Render Alfred system errors script filter."

          on "--system_errors"

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

          def call(*) = kernel.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-15.4.1 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.4.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.3.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.2.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.1.1 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.1.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.0.3 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.0.2 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.0.1 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-15.0.0 lib/pennyworth/cli/actions/system/errors.rb