Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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."
```

---



Patreon



Support this and other open-source projects on Patreon!

---

[1]: https://github.com/boot-clj/boot