Use name instead of module for executable names

This commit is contained in:
bom 2024-10-04 16:17:08 +02:00
parent bd2683b722
commit aa8e44a901

View file

@ -52,15 +52,15 @@
(defn-spec c4k-uberjar-command seq?
[config ::config]
(let [{:keys [module]} config
executable-name (str "c4k-" module "-standalone.jar")]
[["bash" "-c" (str executable-name " " (config-path config) " " (auth-path config) " > " (output-path config))]]))
(let [{:keys [name]} config
executable-name (str "c4k-" name "-standalone.jar")]
["bash" "-c" (str executable-name " " (config-path config) " " (auth-path config) " > " (output-path config))]))
(defn-spec c4k-graalvm-command seq?
[config ::config]
(let [{:keys [module]} config
executable-name (str "c4k-" module)]
[["bash" "-c" (str executable-name " " (config-path config) " " (auth-path config) " > " (output-path config))]]))
(let [{:keys [name]} config
executable-name (str "c4k-" name)]
["bash" "-c" (str executable-name " " (config-path config) " " (auth-path config) " > " (output-path config))]))
(defn-spec create-c4k-config map?
[config ::config