Sha256: 94931a9f78fee8103b1c6d5ada3d11aa05c53614ed5b0ec88cbf3ad72620d6ef

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

          description "Render Alfred system signals script filter."

          on "--system_signals"

          def initialize(processor: Processor.for_system_signals, **)
            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/signals.rb
pennyworth-15.4.0 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.3.0 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.2.0 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.1.1 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.1.0 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.0.3 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.0.2 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.0.1 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-15.0.0 lib/pennyworth/cli/actions/system/signals.rb