Sha256: 20a03d7423f8593b2989391dd9783323d7ec865df409729eb019bedc5098ddd7

Contents?: true

Size: 581 Bytes

Versions: 10

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Render Alfred standard errors script filter."

        on "--standard_errors"

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

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

        private

        attr_reader :processor
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pennyworth-15.4.1 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.4.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.3.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.2.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.1.1 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.1.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.0.3 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.0.2 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.0.1 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-15.0.0 lib/pennyworth/cli/actions/standard_errors.rb