mage2tv / magento-cache-clean

A faster drop in replacement for bin/magento cache:clean with file watcher
BSD 3-Clause "New" or "Revised" License
527 stars 61 forks source link

Added Integration Test Hotkey #114

Closed DavidLambauer closed 4 months ago

Vinai commented 4 months ago

Hey David,

thanks for the PR! I think there may be a commit missing? It only adds the hotkey to the readme, not the actual code.

DavidLambauer commented 4 months ago

Heya! This is correct. The feature already exists 🙈 Only the readme was missing CleanShot 2024-05-13 at 09 47 50@2x

Vinai commented 4 months ago

Well, look at that, you are right. I completely forgot about that!

(defn- process-key [base-dir key]
  (log/debug "Key pressed:" key)
  (check-abort key)
  (when-let [types (get key->cachetypes key)]
    (cache/clean-cache-types types))
  (doseq [area (get key->static-content-areas key)]
    (static-content/clean base-dir area))
  (when (= key-generated-code key)
    (magento.generated-code/clean base-dir))
  (when (= key-integration-tests-sandboxes key)
    (magento.integration-tests/clean base-dir)))
Vinai commented 4 months ago

Thank you!

Vinai commented 4 months ago

Released as 1.0.53