Boot task to do operations on files (move, copy, etc)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/dgellow
.gitignore
LICENSE
README.md
build.boot

README.md

boot-files

[dgellow/boot-files "1.0.1"] ;; latest release

Do operations on files within the fileset.

  • move-files
  • copy-files

Usage

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]])

From build.boot, in a task

(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)))

From the terminal (cli)

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