Sha256: 78d733912a4d6ee1fa05f760d8297ec49ab01b1d65814dc0e408dadb67f68f41

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require_relative "../command"

module Expire
  module Commands
    # Print the option names of all rules
    class RuleOptionNames < Expire::Command
      def initialize(options)
        @options = options
      end

      def execute(input: $stdin, output: $stdout)
        Expire.rule_option_names.each do |option_name|
          output.puts option_name
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expire-0.2.6 lib/expire/commands/rule_option_names.rb
expire-0.2.5 lib/expire/commands/rule_option_names.rb
expire-0.2.4 lib/expire/commands/rule_option_names.rb
expire-0.2.3 lib/expire/commands/rule_option_names.rb