Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/degree9/boot-io
Boot-clj IO functionality using Apache Commons IO
https://github.com/degree9/boot-io
boot-clj
Last synced: about 1 month ago
JSON representation
Boot-clj IO functionality using Apache Commons IO
- Host: GitHub
- URL: https://github.com/degree9/boot-io
- Owner: degree9
- License: mit
- Created: 2017-10-30T18:21:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T19:54:13.000Z (over 4 years ago)
- Last Synced: 2024-07-26T10:06:06.547Z (5 months ago)
- Topics: boot-clj
- Language: Clojure
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boot-io
[![Clojars Project](https://img.shields.io/clojars/v/degree9/boot-io.svg)](https://clojars.org/degree9/boot-io) [![Downloads](https://versions.deps.co/degree9/boot-io/downloads.svg)](https://versions.deps.co/degree9/boot-io)Boot-clj IO functionality using Apache Commons IO.
---
boot-io is developed and maintained by Degree9---
IO Tasks for [boot-clj][1].
* Provides `add-file` task for adding files to the fileset.
* Provides `add-directory` task for adding directories to the fileset.
* Provides `add-fileset` task for adding files/directories to the fileset.> The following outlines basic usage of the task, extensive testing has not been done.
> Please submit issues and pull requests!## Usage ##
Add `boot-io` to your `build.boot` dependencies and `require` the namespace:
```clj
(set-env! :dependencies '[[degree9/boot-io "X.Y.Z" :scope "test"]])
(require '[degree9.boot-io :refer :all])
```Add a file to the fileset:
```bash
boot add-file -s "license" -d "license"
```Add a file to the fileset:
```bash
boot add-directory -s "test" -d "test"
```Add a file or directory to the fileset:
```bash
;; add folder
boot add-fileset -s "test" -d "target"
;; add file
boot add-fileset -s "license" -d "target"
```## Task Options ##
All tasks exposes options for specifying where to look for an files/directories and where to put them on the fileset.
```clojure
s source VAL str "File/Folder used as source."
d destination VAL str "Target file/folder within the fileset."
```---
Support this and other open-source projects on Patreon!---
[1]: https://github.com/boot-clj/boot