Sha256: f1eb21e4a63305bd1f43c684b6809564484bfa70bbf0268984377e8abaf5bd62

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Zeitwerk gem."

        on "--[no-]zeitwerk"

        default { Container[:configuration].build_zeitwerk }

        def call(value = default) = input.build_zeitwerk = 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/zeitwerk.rb