Skip to content

Commit b31a182

Browse files
committed
feat: more info in cli
1 parent 14540ce commit b31a182

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/aidbox_sdk/cli.clj

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
(println "USAGE")
3939
(println "aidbox-sdk generate <target-language> <input-source> [options]")
4040
(println)
41+
(println "<target-language> is one of: " (str/join "," supported-languages))
42+
(println "<input-source> is either:\n1) path to .tar.gz FHIRSchemas package file\n2) url to download FHIRSchema .tar.gz file")
43+
(println)
44+
(println "EXAMPLES")
45+
(println "$ aidbox-sdk generate dotnet http://localhost:8888/api/sdk/fhir-packages -a YmFzaWM6c2VjcmV0")
46+
(println "$ aidbox-sdk generate dotnet hl7.fhir.r4.core-4.0.1.tgz")
47+
(println)
4148
(println "OPTIONS")
4249
(println summary))
4350

@@ -63,7 +70,7 @@
6370
(exit 0)
6471

6572
(catch Throwable e
66-
(print-errors e)
73+
(println " error " e)
6774
(exit 1)))
6875

6976
:else

src/aidbox_sdk/core.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
(println "Generating common SDK files")
109109
(save-files! (generator/generate-sdk-files generator'))
110110

111-
(println "Finished succesfully!")))
111+
(println "Finished succesfully!")
112+
(println "Output dir: " (.getAbsolutePath output-dir))))
112113

113114
(def system {:exit (fn [status] (System/exit status))
114115
:generate generate!})

0 commit comments

Comments
 (0)