Skip to content

Commit

Permalink
improved on docker/version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Aug 31, 2023
1 parent 8d0d3fe commit f722b29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/com/github/jlangch/venice/docker.venice
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit f722b29

Please sign in to comment.