Permalink
Browse files

Fixed issue with option not working

  • Loading branch information...
adamrenklint committed Dec 11, 2017
1 parent 8acddfe commit 3078f379c9b91b04f64e6a15cc63b41a4a1a59ec
Showing with 16 additions and 6 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +7 −3 build.boot
  4. +3 −1 circle.yml
  5. +1 −1 src/adamrenklint/boot_exec.clj
View
@@ -1,5 +1,9 @@
# Changelog
## v1.0.1 - 2017-12-12
- Fixed issue with `dir` option not working
## v1.0.0 - 2017-12-11
- Initial release
View
@@ -7,7 +7,7 @@ Boot task to execute a shell command, without changing the fileset
)](https://circleci.com/gh/adamrenklint/boot-exec)
```clojure
[adamrenklint/boot-exec "1.0.0"] ;; latest release
[adamrenklint/boot-exec "1.0.1"] ;; latest release
```
## Usage
View
@@ -1,5 +1,5 @@
(def project 'adamrenklint/boot-exec)
(def version "1.0.0")
(def version "1.0.1")
(set-env!
:source-paths #{"src"}
@@ -14,8 +14,11 @@
(bootlaces! version)
(ns-unmap 'boot.user 'test)
(ns-unmap 'boot.user 'format)
(deftask deps [])
(deftask release []
(comp (build-jar)
(push-release)
@@ -30,8 +33,9 @@
(deftask format []
(fmt))
(deftask echo []
(exec :cmd "echo hello world"))
(deftask test []
(exec :cmd "cat boot_exec.clj"
:dir "src/adamrenklint"))
(task-options!
pom {:project project
View
@@ -5,11 +5,13 @@ dependencies:
pre:
- curl -L https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh -o ~/bin/boot
- chmod +x ~/bin/boot
override:
- boot deps
cache_directories:
- "~/bin"
- "~/.m2"
- "~/.boot/cache/bin"
- "~/.boot/cache/lib"
test:
override:
- boot echo
- boot test
@@ -13,5 +13,5 @@
(let [pred? (if pred-fn (resolve pred-fn) (fn [] true))]
(core/with-pass-thru _
(when (pred?)
(binding [clojure.java.shell/*sh-dir* (or dir ".")]
(binding [util/*sh-dir* (or dir ".")]
(apply util/dosh (string/split cmd #" ")))))))

0 comments on commit 3078f37

Please sign in to comment.