Replace frame title with out function
This commit is contained in:
parent
36c655cec0
commit
fe071e82a6
5
cv
5
cv
|
@ -56,7 +56,6 @@ out(){
|
|||
frame(){
|
||||
case "$1" in
|
||||
top) printf "╔══════════════════════════════════════════════════╗\n" ;;
|
||||
title) printf "║ Statistic ║ Today ║ Yesterday ║\n" ;;
|
||||
sep) printf "╟────────────────╫────────────────╫────────────────╢\n" ;;
|
||||
up) printf "╠════════════════╦════════════════╦════════════════╣\n" ;;
|
||||
down) printf "╚════════════════╩════════════════╩════════════════╝\n" ;;
|
||||
|
@ -66,9 +65,9 @@ frame(){
|
|||
}
|
||||
result(){
|
||||
frame top
|
||||
title "Queried at: $date"
|
||||
title "Queried at $date for $(get country)."
|
||||
frame up
|
||||
frame title
|
||||
out Statistic Today Yesterday
|
||||
frame sep
|
||||
stats Total cases
|
||||
getpm casesPerOneMillion
|
||||
|
|
Reference in New Issue