Sha256: 8209259505ba7725dcc41e095b5b4e094a9a1bc2e5c36822b5060a1e8b9a811f

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add contributions documentation."

        on "--[no-]contributions"

        default { Container[:configuration].build_contributions }

        def call(value = default) = input.build_contributions = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/contributions.rb