Liking cljdoc? Tell your friends :D

hara.print


(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))
raw docstring

(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))
raw docstring

(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))
raw docstring

(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))
raw docstring

(print-subtitle text)

prints the subtitle

(-> (print-subtitle "Hello Again") (with-out-str))

prints the subtitle

(-> (print-subtitle "Hello Again")
    (with-out-str))
raw docstring

(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))
raw docstring

(print-title title)

prints the title

(-> (print-title "Hello World") (with-out-str))

prints the title

(-> (print-title "Hello World")
    (with-out-str))
raw docstring

(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"}]]])
raw docstring

progressclj

(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 ""})
raw docstring

progress-stringclj

(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 -"
raw docstring

progress-updateclj

(progress-update progress)
(progress-update progress number)

updates the progress meter

(progress-update (progress) 10)

updates the progress meter

(progress-update (progress) 10)
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close