Skip to content

Refactor to use babashka/cli for entrypoint args - #291

Merged
cap10morgan merged 3 commits into
masterfrom
refactor/babashka-cli
Jul 28, 2026
Merged

Refactor to use babashka/cli for entrypoint args#291
cap10morgan merged 3 commits into
masterfrom
refactor/babashka-cli

Conversation

@cap10morgan

Copy link
Copy Markdown
Collaborator

I'd been meaning to do this for awhile. Uses babashka/cli for processing entrypoint args.

@cap10morgan
cap10morgan requested a review from Quantisan June 30, 2026 17:14
filter-opts (dissoc opts :parallelism)]
(build-images (or parallelism 4) cfg/installer-hashes (generate-variants filter-opts))))

(def cmd-table

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks clean

:default 4
:validate pos?}}}])

(defn -main

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! real win here 👍

Comment thread src/docker_clojure/core.clj Outdated
(run {:cmd (if cmd (keyword cmd) :build-images)
:args args
:parallelization 4})))
(defn run

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stating obvious.. would be nicer if we can do away with this second entry point

The exec-fn based entrypoint was dead code left over from before the
babashka.cli migration: bb.edn's build-images task already calls -main
directly, and nothing else referenced clojure -X:build-images. It also
silently dropped the :parallelization exec-arg, which never reached
cmd-build-images's :parallelism option.

Addresses review feedback on PR #291.
@cap10morgan
cap10morgan merged commit 89a7914 into master Jul 28, 2026
4 checks passed
@cap10morgan
cap10morgan deleted the refactor/babashka-cli branch July 28, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants