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(){
|
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
|
||||||
|
Reference in New Issue
Block a user