Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 1, 2021
1 parent bbf144f commit e309b49
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 124 deletions.
2 changes: 1 addition & 1 deletion .circleci/script/docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

image_name="borkdude/babashka"
image_name="babashka/babashka"
image_tag=$(cat resources/BABASHKA_VERSION)
latest_tag="latest"

Expand Down
2 changes: 1 addition & 1 deletion .github/script/docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

image_name="borkdude/babashka"
image_name="babashka/babashka"
image_tag=$(cat resources/BABASHKA_VERSION)
latest_tag="latest"

Expand Down
144 changes: 72 additions & 72 deletions CHANGELOG.md

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<img src="logo/babashka.svg" width="425px">

[![CircleCI](https://circleci.com/gh/borkdude/babashka/tree/master.svg?style=shield)](https://circleci.com/gh/borkdude/babashka/tree/master)
[![CircleCI](https://circleci.com/gh/babashka/babashka/tree/master.svg?style=shield)](https://circleci.com/gh/babashka/babashka/tree/master)
[![project chat](https://img.shields.io/badge/slack-join_chat-brightgreen.svg)](https://app.slack.com/client/T03RZGPFR/CLX41ASCS)
[![Financial Contributors on Open Collective](https://opencollective.com/babashka/all/badge.svg?label=financial+contributors)](https://opencollective.com/babashka) [![Clojars Project](https://img.shields.io/clojars/v/borkdude/babashka.svg)](https://clojars.org/borkdude/babashka)
[![Financial Contributors on Open Collective](https://opencollective.com/babashka/all/badge.svg?label=financial+contributors)](https://opencollective.com/babashka) [![Clojars Project](https://img.shields.io/clojars/v/babashka/babashka.svg)](https://clojars.org/babashka/babashka)
[![twitter](https://img.shields.io/badge/twitter-%23babashka-blue)](https://twitter.com/search?q=%23babashka&src=typed_query&f=live)

A Clojure [babushka](https://en.wikipedia.org/wiki/Headscarf) for the grey areas of Bash.
Expand Down Expand Up @@ -40,15 +40,15 @@ As one user described it:

## Quickstart

For installation options check [Installation](https://github.com/borkdude/babashka#installation).
For installation options check [Installation](https://github.com/babashka/babashka#installation).
For quick installation use:

``` shell
$ bash <(curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install)
$ bash <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
```

or grab a binary from [Github
releases](https://github.com/borkdude/babashka/releases) yourself and place it
releases](https://github.com/babashka/babashka/releases) yourself and place it
anywhere on the path.

Then you're ready to go:
Expand All @@ -61,7 +61,7 @@ bb took 4ms.

### Babashka users

Are you using babashka in your company or personal projects? Let us know [here](https://github.com/borkdude/babashka/issues/254).
Are you using babashka in your company or personal projects? Let us know [here](https://github.com/babashka/babashka/issues/254).

### Setting expectations

Expand Down Expand Up @@ -166,7 +166,7 @@ On Windows you can install using [scoop](https://scoop.sh/) and the
Install via the installer script:

``` shell
$ curl -sLO https://raw.githubusercontent.com/borkdude/babashka/master/install
$ curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
$ chmod +x install
$ ./install
```
Expand Down Expand Up @@ -194,12 +194,12 @@ $ ./install --dir . --version 0.2.5 --download-dir .
### Github releases

You may also download a binary from
[Github](https://github.com/borkdude/babashka/releases). For linux there is a
[Github](https://github.com/babashka/babashka/releases). For linux there is a
static binary available which can be used on Alpine.

## Docker

Check out the image on [Docker hub](https://hub.docker.com/r/borkdude/babashka/).
Check out the image on [Docker hub](https://hub.docker.com/r/babashka/babashka/).

## [News](doc/news.md)

Expand Down Expand Up @@ -272,7 +272,7 @@ handling of SIGINT and SIGPIPE. This can be done by setting
- [The REPL podcast](https://www.therepl.net/episodes/36/) Michiel Borkent talks about [clj-kondo](https://github.com/borkdude/clj-kondo), [Jet](https://github.com/borkdude/jet), Babashka, and [GraalVM](https://github.com/oracle/graal) with Daniel Compton.
- [Implementing an nREPL server for babashka](https://youtu.be/0YmZYnwyHHc): impromptu presentation by Michiel Borkent at the online [Dutch Clojure Meetup](http://meetup.com/The-Dutch-Clojure-Meetup)
- [ClojureScript podcast](https://soundcloud.com/user-959992602/s3-e5-babashka-with-michiel-borkent) with Jacek Schae interviewing Michiel Borkent
- [Babashka talk at ClojureD](https://www.youtube.com/watch?v=Nw8aN-nrdEk) ([slides](https://speakerdeck.com/borkdude/babashka-and-the-small-clojure-interpreter-at-clojured-2020)) by Michiel Borkent
- [Babashka talk at ClojureD](https://www.youtube.com/watch?v=Nw8aN-nrdEk) ([slides](https://speakerdeck.com/babashka/babashka-and-the-small-clojure-interpreter-at-clojured-2020)) by Michiel Borkent
- [Babashka: a quick example](https://juxt.pro/blog/posts/babashka.html) by Malcolm Sparks
- [Clojure Start Time in 2019](https://stuartsierra.com/2019/12/21/clojure-start-time-in-2019) by Stuart Sierra
- [Advent of Random
Expand Down Expand Up @@ -309,7 +309,7 @@ babashka is interesting to share with the world, they are free to distribute it
using a different binary name (like `bb-sql`, `bb-docker`, `bb-yourcompany`,
etc.). See the [feature flag documentation](doc/build.md#feature-flags) and the
implementation of the existing feature flags ([example
commit](https://github.com/borkdude/babashka/commit/02c7c51ad4b2b1ab9aa95c26a74448b138fe6659)).
commit](https://github.com/babashka/babashka/commit/02c7c51ad4b2b1ab9aa95c26a74448b138fe6659)).

## Related projects

Expand All @@ -325,7 +325,7 @@ Thanks to all the people that contributed to babashka:
- [Adgoji](https://www.adgoji.com/) for financial support
- [CircleCI](https://circleci.com/) for CI and additional support
- [Nikita Prokopov](https://github.com/tonsky) for the logo
- [Contributors](https://github.com/borkdude/babashka/graphs/contributors) and
- [Contributors](https://github.com/babashka/babashka/graphs/contributors) and
other users posting issues with bug reports and ideas
- [Github sponsors](https://github.com/sponsors/borkdude)
- [OpenCollective sponsors](https://opencollective.com/babashka)
Expand All @@ -334,7 +334,7 @@ Thanks to all the people that contributed to babashka:
### Code Contributors

This project exists thanks to all the people who contribute. [[Contribute](doc/dev.md)].
<a href="https://github.com/borkdude/babashka/graphs/contributors"><img src="https://opencollective.com/babashka/contributors.svg?width=890&button=false" /></a>
<a href="https://github.com/babashka/babashka/graphs/contributors"><img src="https://opencollective.com/babashka/contributors.svg?width=890&button=false" /></a>

### Financial Contributors

Expand Down
1 change: 1 addition & 0 deletions doc/.#dev.md
4 changes: 2 additions & 2 deletions doc/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ NOTE: the babashka repository contains submodules. You need to use the
`--recursive` flag to clone these submodules along with the main repo.

``` shellsession
$ git clone https://github.com/borkdude/babashka --recursive
$ git clone https://github.com/babashka/babashka --recursive
```

To update later on:
Expand Down Expand Up @@ -109,7 +109,7 @@ Note that httpkit server is currently experimental, the feature flag could be to
To disable all of the above features, you can set `BABASHKA_LEAN` to `true`.

Here is an [example
commit](https://github.com/borkdude/babashka/commit/13f65f05aeff891678e88965d9fbd146bfa87f4e)
commit](https://github.com/babashka/babashka/commit/13f65f05aeff891678e88965d9fbd146bfa87f4e)
that can be used as a checklist when you want to create a new feature flag.

### HyperSQL
Expand Down
22 changes: 11 additions & 11 deletions doc/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Twitter.

A new babashka talk: [Babashka and sci
internals](https://youtu.be/pgNp4Lk3gf0). Also see
[slides](https://speakerdeck.com/borkdude/babashka-and-sci-internals-at-london-clojurians-december-2020)
[slides](https://speakerdeck.com/babashka/babashka-and-sci-internals-at-london-clojurians-december-2020)
and [REPL
session](https://gist.github.com/borkdude/66a4d844668e12ae1a8277af10d6cc4b).

Babashka 0.2.6 released. See [release
notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v026).
notes](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v026).

Babashka 0.2.5 released. See [release
notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v025).
notes](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v025).

- First release of the [sqlite pod](https://github.com/babashka/pod-babashka-sqlite3)
- First release of the [buddy pod](https://github.com/babashka/pod-babashka-buddy)
Expand All @@ -36,7 +36,7 @@ Babashka [survey](https://nl.surveymonkey.com/r/H2HK3RC). Feedback will be used
for future development.

Babashka 0.2.4 released. See [release
notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v024).
notes](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v024).

- [Gaiwan.co](https://github.com/lambdaisland/gaiwan_co#tech-stack) are building their static HTML with babashka and [bootleg](https://github.com/retrogradeorbit/bootleg#babashka-pod-usage).
- [sha-words](https://github.com/ordnungswidrig/sha-words): A clojure program to
Expand All @@ -48,24 +48,24 @@ notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v024).
dependencies using Clojure's tools.deps and babashka.
- LA Clojure Meetup [presentation](https://youtu.be/RogyxI-GaGQ) by Nate Jones. Recorded in April 2020.
- [Github action](https://github.com/turtlequeue/setup-babashka) for babashka by Nicolas Ha.
- Oracle DB [feature flag](https://github.com/borkdude/babashka/blob/master/doc/build.md#feature-flags) by Jakub Holy added.
- Oracle DB [feature flag](https://github.com/babashka/babashka/blob/master/doc/build.md#feature-flags) by Jakub Holy added.
- Torrent viewer [gist](https://gist.github.com/zelark/49ffbc0cd701c9299e35421ac2e3d5ab) by Aleksandr Zhuravlёv.
- Clone all repositories from a Gitlab group:
[gist](https://gist.github.com/MrGung/81bee21eb52cb9307f336705d5ab08ad) by
Steffen Glückselig.
- [Matchete](https://github.com/xapix-io/matchete), a pattern matching library,
works with babashka. See
[example](https://github.com/borkdude/babashka/issues/631).
[example](https://github.com/babashka/babashka/issues/631).

## 2020-10

Babashka 0.2.3 released. See [release
notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v023-2020-10-21).
notes](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v023-2020-10-21).

- [Malcolm Sparks](https://twitter.com/malcolmsparks/status/1320274099952848896) posted a
[script](https://gist.github.com/malcolmsparks/61418b6bbcd0962536add1ccb07033b5) that
sorts his photo collection.
- [Image viewer](https://github.com/borkdude/babashka/tree/master/examples#image-viewer) example
- [Image viewer](https://github.com/babashka/babashka/tree/master/examples#image-viewer) example
- SQL Server [pod](https://github.com/xledger/pod_sql_server) by Isak Sky
- [SSH Auth Github](https://github.com/nextjournal/ssh-auth-github) by
NextJournal.
Expand All @@ -75,7 +75,7 @@ notes](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v023-2020-1
## 2020-09

Babashka
[0.2.1](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v021-2020-09-25)
[0.2.1](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v021-2020-09-25)
and 0.2.2 released.

- Code Quality report for Clojure projects in Gitlab using babashka and clj-kondo. See [gist](https://gist.github.com/hansbugge/4be701d771057e8ef6bbbb0912656355). By Hans Bugge.
Expand All @@ -85,7 +85,7 @@ and 0.2.2 released.

## 2020-08

Babashka [0.2.0](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v020-2020-08-28) released.
Babashka [0.2.0](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v020-2020-08-28) released.

- Maarten Metz
[blogs](https://www.mxmmz.nl/blog/building-a-website-with-babashka.html) about
Expand All @@ -102,7 +102,7 @@ Babashka [0.2.0](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v

## 2020-06

Babashka [0.1.3](https://github.com/borkdude/babashka/blob/master/CHANGELOG.md#v013-2020-06-27) and 0.1.2 released.
Babashka [0.1.3](https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v013-2020-06-27) and 0.1.2 released.

- New release of [brisk](https://github.com/justone/brisk), a CLI around nippy which can be used as a pod from babashka.
- [passphrase.clj](https://gist.github.com/snorremd/43c49649d2d844ee1e646fee67c141bb) script by Snorre Magnus Davøen
2 changes: 1 addition & 1 deletion doc/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Contol your spotify player using babashka.
### [lambdaisland/open-source](https://github.com/lambdaisland/open-source)
[Internal
tooling](https://github.com/borkdude/babashka/issues/457#issuecomment-636739415)
tooling](https://github.com/babashka/babashka/issues/457#issuecomment-636739415)
used by Lambda Island projects. Noteworthy: a [babashka-compatible hiccup
script](https://github.com/lambdaisland/open-source/blob/2cfde3dfb460e72f047bf94e6f5ec7f519c6d7a0/src/lioss/hiccup.clj).
Expand Down
6 changes: 3 additions & 3 deletions doc/surveys/2020-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ that widely used from babashka.

Some people are using babashka for interacting with SQL databases. There are two
ways to do this: compile babashka with extra [feature
flags](https://github.com/borkdude/babashka/blob/master/doc/build.md#feature-flags)
flags](https://github.com/babashka/babashka/blob/master/doc/build.md#feature-flags)
enabled or use
[babashka-sql-pods](https://github.com/babashka/babashka-sql-pods/).

Expand Down Expand Up @@ -139,7 +139,7 @@ into the next question.
*My comment:*

Clearly users want an easier way to include libraries and pods. We are thinking
about that in [this](https://github.com/borkdude/babashka/issues/473) issue.
about that in [this](https://github.com/babashka/babashka/issues/473) issue.

The second most mentioned missing feature was a library around files. This is
work in progress [here](https://github.com/babashka/fs).
Expand All @@ -152,7 +152,7 @@ ways of making http requests.

*My comment:* If have attempted to write about HTTP request in babashka
[here](https://book.babashka.org/#_choosing_the_right_client) and
[here](https://github.com/borkdude/babashka/wiki/HTTP-client-and-server-considerations).
[here](https://github.com/babashka/babashka/wiki/HTTP-client-and-server-considerations).
The summary is that both `babashka.curl` and `org.httpkit.client` have different
optimal use cases. In most small scripting scenarios `babashka.curl` will
do. For making many small requests `org.httpkit.client` is more optimal since it
Expand Down
20 changes: 10 additions & 10 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ < /tmp/test.txt bb -io '(shuffle *input*)'
'[cheshire.core :as json])

(defn babashka-latest-version []
(-> (sh "curl" "https://api.github.com/repos/borkdude/babashka/tags")
(-> (sh "curl" "https://api.github.com/repos/babashka/babashka/tags")
:out
(json/parse-string true)
first
Expand Down Expand Up @@ -105,7 +105,7 @@ less

## Portable tree command

See [examples/tree.clj](https://github.com/borkdude/babashka/blob/master/examples/tree.clj).
See [examples/tree.clj](https://github.com/babashka/babashka/blob/master/examples/tree.clj).

``` shellsession
$ clojure -Sdeps '{:deps {org.clojure/tools.cli {:mvn/version "0.4.2"}}}' examples/tree.clj src
Expand All @@ -127,7 +127,7 @@ src

## List outdated maven dependencies

See [examples/outdated.clj](https://github.com/borkdude/babashka/blob/master/examples/outdated.clj).
See [examples/outdated.clj](https://github.com/babashka/babashka/blob/master/examples/outdated.clj).
Inspired by an idea from [@seancorfield](https://github.com/seancorfield).

``` shellsession
Expand Down Expand Up @@ -157,17 +157,17 @@ A script with the same goal can be found [here](https://gist.github.com/swlkr/3f

## Print current time in California

See [examples/pst.clj](https://github.com/borkdude/babashka/blob/master/examples/pst.clj)
See [examples/pst.clj](https://github.com/babashka/babashka/blob/master/examples/pst.clj)

## Tiny http server

See [examples/http_server.clj](https://github.com/borkdude/babashka/blob/master/examples/http_server.clj)
See [examples/http_server.clj](https://github.com/babashka/babashka/blob/master/examples/http_server.clj)

Original by [@souenzzo](https://gist.github.com/souenzzo/a959a4c5b8c0c90df76fe33bb7dfe201)

## Print random docstring

See [examples/random_doc.clj](https://github.com/borkdude/babashka/blob/master/examples/random_doc.clj)
See [examples/random_doc.clj](https://github.com/babashka/babashka/blob/master/examples/random_doc.clj)

``` shell
$ examples/random_doc.clj
Expand Down Expand Up @@ -205,7 +205,7 @@ $ sha1.clj babashka

`Dockerfile`:
``` dockerfile
FROM borkdude/babashka
FROM babashka/babashka
RUN echo $'\
(println "Your command line args:" *command-line-args*)\
'\
Expand Down Expand Up @@ -244,15 +244,15 @@ Your command line args: (1 2 3)
## Note taking app

See
[examples/notes.clj](https://github.com/borkdude/babashka/blob/master/examples/notes.clj). This
[examples/notes.clj](https://github.com/babashka/babashka/blob/master/examples/notes.clj). This
is a variation on the
[http-server](https://github.com/borkdude/babashka/#tiny-http-server)
[http-server](https://github.com/babashka/babashka/#tiny-http-server)
example. If you get prompted with a login, use `admin`/`admin`.

## which

The `which` command re-implemented in Clojure. See
[examples/which.clj](https://github.com/borkdude/babashka/blob/master/examples/which.clj).
[examples/which.clj](https://github.com/babashka/babashka/blob/master/examples/which.clj).
Prints the canonical file name.

``` shell
Expand Down
6 changes: 3 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@ do
done

if [[ "$version" == "" ]]; then
version="$(curl -sL https://raw.githubusercontent.com/borkdude/babashka/master/resources/BABASHKA_RELEASED_VERSION)"
version="$(curl -sL https://raw.githubusercontent.com/babashka/babashka/master/resources/BABASHKA_RELEASED_VERSION)"
fi

case "$(uname -s)" in
Linux*) platform=linux;;
Darwin*) platform=macos;;
esac

download_url="https://github.com/borkdude/babashka/releases/download/v$version/babashka-$version-$platform-amd64.zip"
download_url="https://github.com/babashka/babashka/releases/download/v$version/babashka-$version-$platform-amd64.zip"

mkdir -p "$download_dir"
cd "$download_dir"
echo -e "Downloading $download_url to $download_dir"
rm -rf "babashka-$version-$platform-amd64.zip"
rm -rf "bb"
curl -o "babashka-$version-$platform-amd64.zip" -sL "https://github.com/borkdude/babashka/releases/download/v$version/babashka-$version-$platform-amd64.zip"
curl -o "babashka-$version-$platform-amd64.zip" -sL "https://github.com/babashka/babashka/releases/download/v$version/babashka-$version-$platform-amd64.zip"
unzip -qqo "babashka-$version-$platform-amd64.zip"
rm "babashka-$version-$platform-amd64.zip"

Expand Down
6 changes: 3 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(defproject borkdude/babashka
(defproject babashka/babashka
#=(clojure.string/trim
#=(slurp "resources/BABASHKA_VERSION"))
:description "babashka"
:url "https://github.com/borkdude/babashka"
:url "https://github.com/babashka/babashka"
:scm {:name "git"
:url "https://github.com/borkdude/babashka"}
:url "https://github.com/babashka/babashka"}
:license {:name "Eclipse Public License 1.0"
:url "http://opensource.org/licenses/eclipse-1.0.php"}
:source-paths ["src" "sci/src" "babashka.curl/src" "pods/src"
Expand Down
2 changes: 1 addition & 1 deletion script/changelog.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
replaced (str/replace changelog
#" #(\d+)"
(fn [[_ issue after]]
(format " [#%s](https://github.com/borkdude/babashka/issues/%s)%s"
(format " [#%s](https://github.com/babashka/babashka/issues/%s)%s"
issue issue (str after))))
replaced (str/replace replaced
#" borkdude/sci#(\d+)"
Expand Down
4 changes: 2 additions & 2 deletions script/cljdoc-preview
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ lein install
echo "---- cljdoc preview: ingesting babashka"
docker run --rm -v "$PWD:/babashka" \
-v "$HOME/.m2:/root/.m2" -v /tmp/cljdoc:/app/data --entrypoint "clojure" \
cljdoc/cljdoc -A:cli ingest -p borkdude/babashka -v "$version" \
cljdoc/cljdoc -A:cli ingest -p babashka/babashka -v "$version" \
--git /babashka

echo "---- cljdoc preview: starting server on port 8000"
docker run --rm -p 8000:8000 -v /tmp/cljdoc:/app/data cljdoc/cljdoc
# go directly to http://localhost:8000/d/borkdude/babashka/0.0.10-SNAPSHOT, not via the search
# go directly to http://localhost:8000/d/babashka/babashka/0.0.10-SNAPSHOT, not via the search
Loading

0 comments on commit e309b49

Please sign in to comment.