Skip to content

Commit

Permalink
Works with Planck
Browse files Browse the repository at this point in the history
  • Loading branch information
lenz committed Dec 30, 2018
1 parent 63f56cc commit 8bc2c2b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).

## 0.3.0 - 2018-12-30
## 0.3.1 - 2018-12-30
### Changed
* Initial support for Planck - now you can use CLI-matic with ClojureScript!

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Clojure is not good for scripting?).

CLI-matic works with GraalVM, giving unbeatable performance for stand-alone command-line apps that do not even need a Java installation - see [Command-line apps with Clojure and GraalVM: 300x better start-up times](https://www.astrecipes.net/blog/2018/07/20/cmd-line-apps-with-clojure-and-graalvm/).

CLI-matic also works with Planck REPL for very quick CLJS scripting - see [Using with Planck](https://github.com/l3nz/cli-matic/blob/master/planck.md).


## Using

The library is available on Clojars:
Expand Down
2 changes: 1 addition & 1 deletion examples-cljs-planck/toycalc-spec.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
"exec" "plk" "-Sdeps" "{:deps {cli-matic {:mvn/version \"0.3.0\"}}}" "-Ksf" "$0" "$@"
"exec" "plk" "-Sdeps" "{:deps {cli-matic {:mvn/version \"0.3.1\"}}}" "-Ksf" "$0" "$@"

(ns toycalc-spec
(:require [cli-matic.core :refer [run-cmd]]
Expand Down
2 changes: 1 addition & 1 deletion planck.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Scripting with Planck is very similar to Clojure; there are a few things that yo

* If you want single-file scripts, remember to start with the preamble:
`#!/usr/bin/env bash`
`"exec" "plk" "-Sdeps" "{:deps {cli-matic {:mvn/version \"0.3.0\"}}}" "-Ksf" "$0" "$@"`
`"exec" "plk" "-Sdeps" "{:deps {cli-matic {:mvn/version \"0.3.1\"}}}" "-Ksf" "$0" "$@"`
* After declaring main, add: `(set! *main-cli-fn* -main)` so Planck knows where to start the script.

On first run, with compilation, you will get a number of warnings; some are caused by CLI-matic and
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject cli-matic "0.3.0"
(defproject cli-matic "0.3.1"
:description "Compact [sub]command line parsing library, for Clojure"
:url "https://github.com/l3nz/cli-matic"
:license {:name "Eclipse Public License, v2"
Expand Down

0 comments on commit 8bc2c2b

Please sign in to comment.