CHANGELOG [skip ci]
This commit is contained in:
parent
86cb997def
commit
4e667679a5
3 changed files with 24 additions and 12 deletions
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
For a list of breaking changes, check [here](#breaking-changes).
|
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:
|
Babashka proper:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,6 @@
|
||||||
|
|
||||||
(defn print-help [_ctx _command-line-args]
|
(defn print-help [_ctx _command-line-args]
|
||||||
(println (str "Babashka v" version))
|
(println (str "Babashka v" version))
|
||||||
;; (println (str "sci v" (str/trim (slurp (io/resource "SCI_VERSION")))))
|
|
||||||
(println)
|
|
||||||
(println "
|
(println "
|
||||||
Help:
|
Help:
|
||||||
|
|
||||||
|
|
@ -114,6 +112,14 @@ Help:
|
||||||
describe Print an EDN map with information about this version of babashka.
|
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.
|
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:
|
REPL:
|
||||||
|
|
||||||
Usage: <repl-command> [port/host] [classpath-opt]
|
Usage: <repl-command> [port/host] [classpath-opt]
|
||||||
|
|
@ -133,15 +139,7 @@ Packaging:
|
||||||
|
|
||||||
uberjar <jar> [eval-opts] Similar to --uberscript but creates jar file.
|
uberjar <jar> [eval-opts] Similar to --uberscript but creates jar file.
|
||||||
|
|
||||||
Evaluation:
|
In- and output flags (to be used with -e on the command line):
|
||||||
|
|
||||||
-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:
|
|
||||||
|
|
||||||
-i Bind *input* to a lazy seq of lines from stdin.
|
-i Bind *input* to a lazy seq of lines from stdin.
|
||||||
-I Bind *input* to a lazy seq of EDN values from stdin.
|
-I Bind *input* to a lazy seq of EDN values from stdin.
|
||||||
|
|
|
||||||
|
|
@ -36,3 +36,12 @@
|
||||||
(with-config '{:deps {medley/medley {:mvn/version "1.3.0"}}}
|
(with-config '{:deps {medley/medley {:mvn/version "1.3.0"}}}
|
||||||
(is (= '{1 {:id 1}, 2 {:id 2}}
|
(is (= '{1 {:id 1}, 2 {:id 2}}
|
||||||
(bb "-e" "(require 'medley.core)" "-e" "(medley.core/index-by :id [{:id 1} {: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}])")))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue