Skip to content

Commit

Permalink
Change style of simple build reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
paintparty committed Aug 9, 2022
1 parent c07d5d6 commit 41b0096
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kushi/reporting.clj
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
(let [body-indent ""
lines (reduce (fn [acc v] (concat acc (if (coll? v) v [v]))) [] (remove nil? lines*))
lines-indent (map #(str body-indent %) lines)]
(string/join "\n" (concat ["\n" header] lines-indent ["\n"]))))
(string/join "\nkushi - " (concat [header] lines-indent))))

(defn select-ns-msg []
(let [selected (:select-ns user-config)]
Expand All @@ -162,8 +162,9 @@
report-line-items-pre (format-line-items banner? report-line-items-pre*)
cache-report (when (and (:report-cache-update? user-config) cache-will-update?)
(str "Updated " kushi-cache-path))
header-text (str "kushi v" version)
header-simple (str (ansi/red "[") (ansi/blue header-text) (ansi/red "]"))
header-text (str "kushi - v" version)
;; header-simple (str (ansi/red "[") (ansi/blue header-text) (ansi/red "]"))
header-simple header-text
header (if banner? header-text header-simple)]

(println
Expand Down

0 comments on commit 41b0096

Please sign in to comment.