Skip to content

Boot task to do operations on files (move, copy, etc)

License

Notifications You must be signed in to change notification settings

dgellow/boot-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Boot task to do operations on files (move, copy, etc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published