Skip to content

Refactor to use babashka/cli for entrypoint args#291

Open
cap10morgan wants to merge 2 commits into
masterfrom
refactor/babashka-cli
Open

Refactor to use babashka/cli for entrypoint args#291
cap10morgan wants to merge 2 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 👍

(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

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