Replace frame title with out function

This commit is contained in:
Michael De Roover 2020-08-14 19:22:39 +02:00
parent 36c655cec0
commit fe071e82a6
Signed by: vim
GPG Key ID: 075496E232CE04CB

5
cv
View File

@ -56,7 +56,6 @@ out(){
frame(){ frame(){
case "$1" in case "$1" in
top) printf "╔══════════════════════════════════════════════════╗\n" ;; top) printf "╔══════════════════════════════════════════════════╗\n" ;;
title) printf "║ Statistic ║ Today ║ Yesterday ║\n" ;;
sep) printf "╟────────────────╫────────────────╫────────────────╢\n" ;; sep) printf "╟────────────────╫────────────────╫────────────────╢\n" ;;
up) printf "╠════════════════╦════════════════╦════════════════╣\n" ;; up) printf "╠════════════════╦════════════════╦════════════════╣\n" ;;
down) printf "╚════════════════╩════════════════╩════════════════╝\n" ;; down) printf "╚════════════════╩════════════════╩════════════════╝\n" ;;
@ -66,9 +65,9 @@ frame(){
} }
result(){ result(){
frame top frame top
title "Queried at: $date" title "Queried at $date for $(get country)."
frame up frame up
frame title out Statistic Today Yesterday
frame sep frame sep
stats Total cases stats Total cases
getpm casesPerOneMillion getpm casesPerOneMillion