Skip to content

Commit

Permalink
Include only required resources
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Jan 20, 2024
1 parent 23e15a7 commit 2b09dd0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"resources": {
"includes": [
{"pattern": ".*"}
{"pattern": "k16/kl/module/network/.*"}
]
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions src/k16/kl/commands/network.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

(defn- write-network-module []
(let [prefix ".kl/network"
module-file (io/resource "network-module/module.edn")
module-file (io/resource "k16/kl/module/network/module.edn")
module-raw (-> module-file
slurp
(str/replace "{{DIR}}" (.toString (api.fs/from-config-dir prefix))))
Expand All @@ -26,7 +26,7 @@
(spit (api.fs/from-config-dir prefix "module.edn") module-raw)

(doseq [file (:include module)]
(let [contents (slurp (io/resource (str "network-module/" file)))]
(let [contents (slurp (io/resource (str "k16/kl/module/network/" file)))]
(spit (api.fs/from-config-dir prefix file) contents)))

module))
Expand Down

0 comments on commit 2b09dd0

Please sign in to comment.