Sha256: cb447d20a5149279420d5419ca85174758a417a9ad571e5bd8b54e818ec22a65

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add readme documentation."

        on "--[no-]readme"

        default { Container[:configuration].build_readme }

        def call(value = default) = input.merge!(build_readme: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/readme.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/readme.rb