Fork me on GitHub
#announcements
<
2024-03-09
>
hlship22:03:52

org.clj-commons/pretty 2.3.0 https://github.com/clj-commons/pretty Pretty prints things prettily; mostly, carefully formatted exception output using ANSI colors, smarter ordering, and name-demangling to take the pain out of figuring out what went wrong, and where. This release adds a new print-table function:

(print-table
    [:method
     :path
     {:key :route-name :title "Name"}]
    [{:method     :get
      :path       "/"
      :route-name :root-page}
     {:method     :post
      :path       "/reset"
      :route-name :reset}
     {:method     :get
      :path       "/status"
      :route-name :status}])
┏━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Method ┃    Path ┃ Name       ┃
┣━━━━━━━━╋━━━━━━━━━╋━━━━━━━━━━━━┫
┃   :get ┃       / ┃ :root-page ┃
┃  :post ┃  /reset ┃ :reset     ┃
┃   :get ┃ /status ┃ :status    ┃
┗━━━━━━━━┻━━━━━━━━━┻━━━━━━━━━━━━┛
=> nil
https://github.com/clj-commons/pretty/milestone/44?closed=1

👍 24
gratitude 7
😎 1
souenzzo23:03:53

I see what you are doing 👀 #C0K65B20P

hlship03:03:58

Sh! Don’t tell anyone!