 
 ;; FIXME: parse args properly, need support for tag and output-dir
 (defn -main [build-id report-file]
-  (generate (keyword build-id) {:print-table true
-                                :report-file report-file}))
+  (generate
+    (api/get-build-config
+      (keyword build-id))
+    {:print-table true
+     :report-file report-file}))
 
 
 (comment
-  (generate :browser {:print-table true :report-file "tmp/report.html"}))+  (generate
+    (api/get-build-config :browser)
+    {:print-table true
+     :report-file "tmp/report.html"}))
  (spit data-file (core-ext/safe-pr-str bundle-info)))

(defn generate
  [build-id {:keys [tag print-table report-file data-file] :or {tag "latest"} :as opts}]
  {:pre [(keyword? build-id)
         (string? tag)
         (seq tag)]}
  (api/with-runtime

      )

  (generate
    (api/get-build-config :ui)
    {:report-file ".shadow-cljs/build-report/index.html"
     :inline false})
  )
