File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010 [eca.features.tools.util :as tools.util]
1111 [eca.logger :as logger]
1212 [eca.messenger :as messenger]
13- [eca.shared :refer [assoc-some]])
13+ [eca.shared :refer [assoc-some]]
14+ [babashka.fs :as fs])
1415 (:import
1516 [java.util Map]))
1617
131132 new-content (get arguments " new_content" )
132133 all? (get arguments " all_occurrences" )]
133134 (when-let [{:keys [original-full-content
134- new-full-content]} (and path original-content new-content
135+ new-full-content]} (and path ( fs/exists? path) original-content new-content
135136 (f.tools.filesystem/file-change-full-content path original-content new-content all?))]
136137 (let [{:keys [added removed diff]} (diff/diff original-full-content new-full-content path)]
137138 {:type :fileChange
You can’t perform that action at this time.
0 commit comments