CHANGELOG [skip ci]

This commit is contained in:
Michiel Borkent 2021-03-29 23:57:13 +02:00
parent 86cb997def
commit 4e667679a5
3 changed files with 24 additions and 12 deletions

View file

@ -2,7 +2,12 @@
For a list of breaking changes, check [here](#breaking-changes).
## 0.3.1
## 0.3.1 (unreleased)
Preliminary docs:
bb.edn: https://book.babashka.org/master.html#_bb_edn
-m with fully qualified symbol: https://book.babashka.org/master.html#_invoking_a_main_function
Babashka proper:

View file

@ -104,8 +104,6 @@
(defn print-help [_ctx _command-line-args]
(println (str "Babashka v" version))
;; (println (str "sci v" (str/trim (slurp (io/resource "SCI_VERSION")))))
(println)
(println "
Help:
@ -114,6 +112,14 @@ Help:
describe Print an EDN map with information about this version of babashka.
doc <var|ns> Print docstring of var or namespace. Requires namespace if necessary.
Evaluation:
-e, --eval <expr> Evaluate an expression.
-f, --file <path> Evaluate a file.
-cp, --classpath Classpath to use.
-m, --main <ns|var> Call the -main function from a namespace or call a fully qualified var.
--verbose Print debug information and entire stacktrace in case of exception.
REPL:
Usage: <repl-command> [port/host] [classpath-opt]
@ -133,15 +139,7 @@ Packaging:
uberjar <jar> [eval-opts] Similar to --uberscript but creates jar file.
Evaluation:
-e, --eval <expr> Evaluate an expression.
-f, --file <path> Evaluate a file.
-cp, --classpath Classpath to use.
-m, --main <ns|var> Call the -main function from a namespace or call a fully qualified var.
--verbose Print debug information and entire stacktrace in case of exception.
In- and output flags:
In- and output flags (to be used with -e on the command line):
-i Bind *input* to a lazy seq of lines from stdin.
-I Bind *input* to a lazy seq of EDN values from stdin.

View file

@ -36,3 +36,12 @@
(with-config '{:deps {medley/medley {:mvn/version "1.3.0"}}}
(is (= '{1 {:id 1}, 2 {:id 2}}
(bb "-e" "(require 'medley.core)" "-e" "(medley.core/index-by :id [{:id 1} {:id 2}])")))))
;; TODO:
;; Do we want to support the same parsing as the clj CLI?
;; Or do we want `--aliases :foo:bar`
;; Let's wait for a good use case
#_(deftest alias-deps-test
(with-config '{:aliases {:medley {:deps {medley/medley {:mvn/version "1.3.0"}}}}}
(is (= '{1 {:id 1}, 2 {:id 2}}
(bb "-A:medley" "-e" "(require 'medley.core)" "-e" "(medley.core/index-by :id [{:id 1} {:id 2}])")))))