|
|
@ -1,29 +1,17 @@
|
|
|
|
(def logo
|
|
|
|
(def logo
|
|
|
|
`
|
|
|
|
`
|
|
|
|
▓█████▄ ▒█████ ██▀███ ▒█████
|
|
|
|
______ _____ ______ _____
|
|
|
|
▒██▀ ██▌▒██▒ ██▒▓██ ▒ ██▒▒██▒ ██▒
|
|
|
|
| \ | | |_____/ | |
|
|
|
|
░██ █▌▒██░ ██▒▓██ ░▄█ ▒▒██░ ██▒
|
|
|
|
|_____/ |_____| | \_ |_____|
|
|
|
|
░▓█▄ ▌▒██ ██░▒██▀▀█▄ ▒██ ██░
|
|
|
|
|
|
|
|
░▒████▓ ░ ████▓▒░░██▓ ▒██▒░ ████▓▒░
|
|
|
|
|
|
|
|
▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░ ▒░▒░▒░
|
|
|
|
|
|
|
|
░ ▒ ▒ ░ ▒ ▒░ ░▒ ░ ▒░ ░ ▒ ▒░
|
|
|
|
|
|
|
|
░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ▒
|
|
|
|
|
|
|
|
░ ░ ░ ░ ░ ░
|
|
|
|
|
|
|
|
░
|
|
|
|
|
|
|
|
`)
|
|
|
|
`)
|
|
|
|
|
|
|
|
|
|
|
|
(def bye
|
|
|
|
(def bye
|
|
|
|
`
|
|
|
|
`
|
|
|
|
▄▄▄▄ ▓██ ██▓▓█████
|
|
|
|
______ __ __ _______
|
|
|
|
▓█████▄▒██ ██▒▓█ ▀
|
|
|
|
|_____] \_/ |______
|
|
|
|
▒██▒ ▄██▒██ ██░▒███
|
|
|
|
|_____] | |______
|
|
|
|
▒██░█▀ ░ ▐██▓░▒▓█ ▄
|
|
|
|
|
|
|
|
░▓█ ▀█▓░ ██▒▓░░▒████▒
|
|
|
|
|
|
|
|
░▒▓███▀▒ ██▒▒▒ ░░ ▒░ ░
|
|
|
|
|
|
|
|
▒░▒ ░▓██ ░▒░ ░ ░ ░
|
|
|
|
|
|
|
|
░ ░▒ ▒ ░░ ░
|
|
|
|
|
|
|
|
░ ░ ░ ░ ░
|
|
|
|
|
|
|
|
░░ ░
|
|
|
|
|
|
|
|
`)
|
|
|
|
`)
|
|
|
|
|
|
|
|
|
|
|
|
(def dorodata "dorodata")
|
|
|
|
(def dorodata "dorodata")
|
|
|
@ -70,6 +58,15 @@
|
|
|
|
(string/split "\n")
|
|
|
|
(string/split "\n")
|
|
|
|
lines->entries)))
|
|
|
|
lines->entries)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defn load-entries-sorted []
|
|
|
|
|
|
|
|
(sorted (load-entries)
|
|
|
|
|
|
|
|
(fn [a b]
|
|
|
|
|
|
|
|
(some true?
|
|
|
|
|
|
|
|
(map (fn [int-a int-b]
|
|
|
|
|
|
|
|
(> int-a int-b))
|
|
|
|
|
|
|
|
(string/bytes (a :prio))
|
|
|
|
|
|
|
|
(string/bytes (b :prio)))))))
|
|
|
|
|
|
|
|
|
|
|
|
(defn entries->string [entries]
|
|
|
|
(defn entries->string [entries]
|
|
|
|
(reduce (fn [acc entry]
|
|
|
|
(reduce (fn [acc entry]
|
|
|
|
(string acc
|
|
|
|
(string acc
|
|
|
@ -116,7 +113,7 @@
|
|
|
|
:clear "\e[0m"})
|
|
|
|
:clear "\e[0m"})
|
|
|
|
|
|
|
|
|
|
|
|
(defn overview []
|
|
|
|
(defn overview []
|
|
|
|
(let [entries (load-entries)
|
|
|
|
(let [entries (load-entries-sorted)
|
|
|
|
len-id (max (col-length entries :id)
|
|
|
|
len-id (max (col-length entries :id)
|
|
|
|
(length "Id"))
|
|
|
|
(length "Id"))
|
|
|
|
len-title (max (col-length entries :title)
|
|
|
|
len-title (max (col-length entries :title)
|
|
|
|