Sha256: ddc19bcc4d7fcbbec1d368320cee034dfe557fc6edc084e18c3269cab4901b76

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add readme documentation."

        on "--[no-]readme"

        default { Container[:configuration].build_readme }

        def call(value = default) = input.build_readme = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/readme.rb