File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 13
13
[" -h" " --help" ]])
14
14
15
15
(def supported-commands #{" generate" })
16
- (def supported-languages #{" dotnet" " java " " typescript " " python " })
16
+ (def supported-languages #{" dotnet" })
17
17
18
18
(defn validate-args [args]
19
19
(let [[command target-language input] args]
27
27
(str/join " , " supported-languages)))
28
28
29
29
(nil? input)
30
- (conj " Please provide input argument " ))))
30
+ (conj " Please provide a source of fhir packages " ))))
31
31
32
32
(defn print-errors [errors]
33
33
(binding [*out* *err*]
Original file line number Diff line number Diff line change 107
107
[{:keys [source]} opts]
108
108
(let [extract-link (fn [package] (-> package :href ))
109
109
extract-name (fn [package] (str (:name package) " #" (:version package)))
110
- fhir-packages (do
110
+ fhir-packages (try
111
111
(println " Downloading list of dependencies from:" source)
112
112
(-> (fetch-n-parse source opts)
113
- (skip-root-package )))]
113
+ (skip-root-package ))
114
+
115
+ (catch Exception _
116
+ (println
117
+ " ERROR: Cannot download FHIR packages. You might have provided the wrong source or forgotten to provide an authentication token." )
118
+ []))]
114
119
(->> fhir-packages
115
120
; ; TODO using pmap for side effects is questionable
116
121
(pmap (fn [package]
You can’t perform that action at this time.
0 commit comments