lib/pennyworth/cli/actions/http_statuses.rb in pennyworth-14.3.0 vs lib/pennyworth/cli/actions/http_statuses.rb in pennyworth-15.0.0

- old
+ new

@@ -1,19 +1,25 @@ # frozen_string_literal: true +require "sod" + module Pennyworth module CLI module Actions # Handles the HTTP statuses action. - class HTTPStatuses - include Pennyworth::Import[:kernel] + class HTTPStatuses < Sod::Action + include Import[:kernel] + description "Render Alfred HTTP statuses script filter." + + on "--http_statuses" + def initialize(processor: Processor.for_http_statuses, **) super(**) @processor = processor end - def call = kernel.puts processor.call.to_json + def call(*) = kernel.puts processor.call.to_json private attr_reader :processor end