Reorder the stats in cv and prioritize some

This commit is contained in:
Michael De Roover 2020-08-14 15:47:49 +02:00
parent a01fb55a86
commit 5bbfc4ad77
Signed by: vim
GPG Key ID: 075496E232CE04CB

10
cv
View File

@ -56,8 +56,8 @@ out(){
frame(){ frame(){
case "$1" in case "$1" in
top) printf "╔═════════════════════════════════════════╗\n" ;; top) printf "╔═════════════════════════════════════════╗\n" ;;
table) printf "║ Statistic ║ Today ║ Yesterday ║\n" title) printf "║ Statistic ║ Today ║ Yesterday ║\n" ;;
printf "╟─────────────╫─────────────╫─────────────╢\n" ;; sep) printf "╟─────────────╫─────────────╫─────────────╢\n" ;;
up) printf "╠═════════════╦═════════════╦═════════════╣\n" ;; up) printf "╠═════════════╦═════════════╦═════════════╣\n" ;;
down) printf "╚═════════════╩═════════════╩═════════════╝\n" ;; down) printf "╚═════════════╩═════════════╩═════════════╝\n" ;;
line) printf "╠═════════════╩═════════════╩═════════════╣\n" ;; line) printf "╠═════════════╩═════════════╩═════════════╣\n" ;;
@ -68,12 +68,14 @@ result(){
frame top frame top
title "Queried at: $date" title "Queried at: $date"
frame up frame up
frame table frame title
frame sep
stats Total cases stats Total cases
stats "╰> Per 1M " casesPerOneMillion stats "╰> Per 1M " casesPerOneMillion
stats New todayCases
frame sep
stats Active active stats Active active
stats Critical critical stats Critical critical
stats New todayCases
stats Deaths deaths stats Deaths deaths
stats "╰> Per 1M " deathsPerOneMillion stats "╰> Per 1M " deathsPerOneMillion
stats Recovered recovered stats Recovered recovered