Sha256: 05de128e6d59df15aea21a4148820b0e291a221b17c75088554291acec5a461a

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add Debug gem."

        on "--[no-]debug"

        default { Container[:configuration].build_debug }

        def call(value = default) = input.merge!(build_debug: 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/debug.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/debug.rb