Sha256: 7053962b8c3f4748f1adf1fdd9f7d1687d6dfb096bc383d65bb08f9b2e7b0bd8

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add readme documentation."

        on "--[no-]readme"

        default { Container[:settings].build_readme }

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