fancy titles
This commit is contained in:
parent
d88762ea57
commit
ca8d3f5b4e
@ -2,8 +2,7 @@
|
||||
|
||||
|
||||
backup(){
|
||||
echo_backup+=("\nBackup Output")
|
||||
echo_backup+=("--------------")
|
||||
echo_backup+=("\n🄱 🄰 🄲 🄺 🅄 🄿 🅂")
|
||||
echo_backup+=("Number of backups was set to $number_of_backups")
|
||||
date=$(date '+%Y_%m_%d_%H_%M_%S')
|
||||
[[ "$verbose" == "true" ]] && cli -c 'app kubernetes backup_chart_releases backup_name=''"'HeavyScript_"$date"'"' &> /dev/null && echo_backup+=(HeavyScript_"$date")
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
|
||||
sync(){
|
||||
echo_sync+=("\n\nSync Output")
|
||||
echo_sync+=("-----------")
|
||||
echo_sync+=("\n\n🅂 🅈 🄽 🄲")
|
||||
cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete")
|
||||
|
||||
#Dump the echo_array, ensures all output is in a neat order.
|
||||
@ -15,8 +14,7 @@ done
|
||||
export -f sync
|
||||
|
||||
prune(){
|
||||
echo -e "\n\nDocker Prune Output"
|
||||
echo "-------------------"
|
||||
echo -e "\n\n🄳 🄾 🄲 🄺 🄴 🅁 🄿 🅁 🅄 🄽 🄴"
|
||||
echo "Pruned Docker Images"
|
||||
docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images"
|
||||
}
|
||||
|
@ -3,8 +3,7 @@
|
||||
|
||||
commander(){
|
||||
mapfile -t array < <(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,container_images_update_available,status' | tr -d " \t\r" | grep -E ",true($|,)" | sort)
|
||||
echo -e "\n\nAplication Update Output"
|
||||
echo "------------------------"
|
||||
echo -e "\n\n🅄 🄿 🄳 🄰 🅃 🄴 🅂"
|
||||
[[ -z ${array[*]} ]] && echo "There are no updates available" && return 0 || echo "Update(s) Available: ${#array[@]}"
|
||||
echo "Asynchronous Updates: $update_limit"
|
||||
[[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout"
|
||||
|
Loading…
Reference in New Issue
Block a user