(print-column items name color)prints the column
(-> (print-column [[:id.a {:data 100}] [:id.b {:data 200}]] :data #{}) (with-out-str))
prints the column
(-> (print-column [[:id.a {:data 100}] [:id.b {:data 200}]]
:data
#{})
(with-out-str))(print-compare output)outputs a side by side comparison
(-> (print-compare [['hara.code [[:a :b :c] [:d :e :f]]]]) (with-out-str))
outputs a side by side comparison
(-> (print-compare [['hara.code [[:a :b :c] [:d :e :f]]]])
(with-out-str))(print-header titles {:keys [padding columns] :as params})prints a header for the row
(-> (print-header [:id :name :value] {:padding 0 :spacing 1 :columns [{:align :right :length 10} {:align :center :length 10} {:align :left :length 10}]}) (with-out-str))
prints a header for the row
(-> (print-header [:id :name :value]
{:padding 0
:spacing 1
:columns [{:align :right :length 10}
{:align :center :length 10}
{:align :left :length 10}]})
(with-out-str))(print-row row params)prints a row to output
(-> (print-row ["hello" :world (result/result {:data [:a :b :c :d :e :f] :status :info})] {:padding 0 :spacing 1 :columns [{:align :right :length 10} {:align :center :length 10} {:align :left :length 10}]}) (with-out-str))
prints a row to output
(-> (print-row ["hello" :world (result/result {:data [:a :b :c :d :e :f]
:status :info})]
{:padding 0
:spacing 1
:columns [{:align :right :length 10}
{:align :center :length 10}
{:align :left :length 10}]})
(with-out-str))(print-subtitle text)prints the subtitle
(-> (print-subtitle "Hello Again") (with-out-str))
prints the subtitle
(-> (print-subtitle "Hello Again")
(with-out-str))(print-summary m)outputs the summary of results
(-> (print-summary {:count 6 :files 2}) (with-out-str))
outputs the summary of results
(-> (print-summary {:count 6 :files 2})
(with-out-str))(print-title title)prints the title
(-> (print-title "Hello World") (with-out-str))
prints the title
(-> (print-title "Hello World")
(with-out-str))(print-tree tree)(print-tree tree prefix check)outputs the result of format-tree
(print-tree '[{a "1.1"} [{b "1.2"} [{c "1.3"} {d "1.4"}]]])
outputs the result of `format-tree`
(print-tree '[{a "1.1"}
[{b "1.2"}
[{c "1.3"}
{d "1.4"}]]])(progress)(progress initial)(progress initial options)creates a structure representing progress
(-> (progress) :state deref) => (contains {:total 100, :current 0, :label ""})
creates a structure representing progress
(-> (progress) :state deref)
=> (contains {:total 100, :current 0, :label ""})(progress-string progress)(progress-string {:keys [total current label] :as state}
{:keys [template bar] :as options})creates a string representation of the current progress
(progress-string (-> @(:state (progress)) (update :update-time + 10) (update :current + 9)) +progress-defaults+) => "[===== 9/100 ] 101s -"
creates a string representation of the current progress
(progress-string (-> @(:state (progress))
(update :update-time + 10)
(update :current + 9))
+progress-defaults+)
=> "[===== 9/100 ] 101s -"(progress-update progress)(progress-update progress number)updates the progress meter
(progress-update (progress) 10)
updates the progress meter (progress-update (progress) 10)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |