[dgellow/boot-files "1.0.1"] ;; latest releaseDo operations on files within the fileset.
move-filescopy-files
Add dgellow/boot-files to your build.boot dependencies and require the namespace:
(set-env! :dependencies '[[dgellow/boot-files "X.Y.Z"]])
(require '[dgellow.boot-files :refer [move-files copy-files]])
(deftask foo []
(comp (move-files :files {"hello.txt" "foo/bar/new-hello.txt"
"something.ext" "something-else.ext"})
(target)))
(deftask bar []
(comp (copy-files :files {"hello.txt" "foo/bar/new-hello.txt"
"something.ext" "something-else.ext"})
(target)))boot move-files --files hello.txt=foo/bar/new-hello.txt \
--files something.ext=someting-else.ext
boot copy-files --files hello.txt=foo/bar/new-hello.txt \
--files something.ext=someting-else.ext