Sha256: 6f68d76aeacffdf75f39f754a86888b0923c8050970ad3996421eef3c1184019

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Reek flag.
      class Reek < Sod::Action
        include Import[:input]

        using ::Refinements::Structs

        description "Add Reek gem."

        on "--[no-]reek"

        default { Container[:configuration].build_reek }

        def call(value = default) = input.merge!(build_reek: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/reek.rb