From aedbb7593d807db52398c4648f61d8ed71eedbb5 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 9 Aug 2019 15:48:54 +0200 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 56910987..a179b914 100644 --- a/README.md +++ b/README.md @@ -4,26 +4,29 @@ [![Clojars Project](https://img.shields.io/clojars/v/borkdude/babashka.svg)](https://clojars.org/borkdude/babashka) [![cljdoc badge](https://cljdoc.org/badge/borkdude/babashka)](https://cljdoc.org/d/borkdude/babashka/CURRENT) -An extremely limited version of Clojure in Clojure for shell-scripting. +A pure, fast and limited version of Clojure in Clojure for shell scripting. Properties: - pure (no side effects) +- fast startup time - interprets only one form - reads from stdin and writes to stdout ## Status -Experimental, mostly for fun. +Experimental. Not all Clojure core functions are supported yet, but can be +easily +[added](https://github.com/borkdude/babashka/blob/master/src/babashka/interpreter.clj#L10). PRs +welcome. + ## Usage -`bb` supports the following options: +The first argument to `bb` is the form to be executed. There is one special +variable, `*in*`. - - `--version`: if present, prints current version of `bb` and exits. - -By default, the first argument to `bb` is the form to be executed. There is one -special variable, `*in*`. +If the first argument is `--version`, then `bb` will print the version and exit. Examples: