Sha256: c08359c0b7cad378347a9d3328520ae56b8b05d7e8de6a8eb7cef6e3bcba29cf

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add contributions documentation."

        on "--[no-]contributions"

        default { Container[:configuration].build_contributions }

        def call(value = default) = input.merge!(build_contributions: 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/contributions.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/contributions.rb