Sha256: 046c98c526751acc71dc199fd3a7e0c94c6c280d5a93855edadd05c67014e539

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add community documentation."

        on "--[no-]community"

        default { Container[:settings].build_community }

        def call(value = nil) = settings.build_community = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/community.rb