Sha256: 8964dbd8fafce3e0eaae4b760efd4112355f00e7bed0730c2340c8f353a1b012

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 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[: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

7 entries across 7 versions & 1 rubygems

Version Path
pennyworth-16.7.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.5.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.4.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.3.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.2.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.1.0 lib/pennyworth/cli/actions/system/error.rb
pennyworth-16.0.0 lib/pennyworth/cli/actions/system/error.rb