Sha256: 6ea0b50711cbfba1969bbc675c9836ce40540d424feae5fc5dde345fb4fa788f

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add code of conduct documentation."

        on "--[no-]conduct"

        default { Container[:settings].build_conduct }

        def call(value = nil) = settings.build_conduct = 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/conduct.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/conduct.rb