Last active
May 27, 2021 21:14
-
-
Save stelcodes/1d7105f8a688852a752fd85482f45875 to your computer and use it in GitHub Desktop.
Babashka passing arguments example script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bb | |
;; Replicating bash/zsh "<command> $@" in babashka | |
(require '[babashka.process :refer [process tokenize]]) | |
(def command "java -jar /deploy/zprint/zprint.jar") | |
(as-> command $ | |
(tokenize $) | |
(concat $ *command-line-args*) | |
(do @(process $ {:inherit true}) nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment