Sha256: d850f42a11203e91fa9bb5e839fa3abeb1291979b79dae49c0239a362d87e774

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add community documentation."

        on "--[no-]community"

        default { Container[:configuration].build_community }

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