Sha256: 3dd88b4877e2ec7e7c2dbfb74e7b54bdf9b57214c2635e18138df0e8cdb81f2e

Contents?: true

Size: 618 Bytes

Versions: 10

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

          description "Render Alfred system signals script filter."

          on "--system_signals"

          def initialize(processor: Processor.for_system_signals, **)
            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/signal.rb
pennyworth-17.7.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.6.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.5.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.4.1 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.4.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.3.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.2.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.1.0 lib/pennyworth/cli/actions/system/signal.rb
pennyworth-17.0.0 lib/pennyworth/cli/actions/system/signal.rb