From f722b298f91b6e00998b391dfc84ae7dae146214 Mon Sep 17 00:00:00 2001 From: Juerg Lang Date: Thu, 31 Aug 2023 22:25:22 +0200 Subject: [PATCH] improved on docker/version --- src/main/resources/com/github/jlangch/venice/docker.venice | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/com/github/jlangch/venice/docker.venice b/src/main/resources/com/github/jlangch/venice/docker.venice index 6dcd0974f..5761a1462 100644 --- a/src/main/resources/com/github/jlangch/venice/docker.venice +++ b/src/main/resources/com/github/jlangch/venice/docker.venice @@ -88,8 +88,9 @@ version [& options] (let [opts (apply hash-map options) - format (:format opts :json) - cmdargs* ["version" "--format" (name format)]] + format (name (:format opts nil)) + cmdargs* ["version"] + cmdargs* (if (some? format) (conj cmdargs* "--format" format) cmdargs*)] (->> (apply docker/cmd cmdargs*) (:out) (parse-output format))))