Sha256: 83f2807407cdbe78656e106834835f62a14d85f423e13ce1708241d6891673df

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 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(boolean) = settings.build_community = boolean
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/community.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/community.rb