From 1d36b1a64bf626e69ddcd37abeee6f7a9914e3f5 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 8 Mar 2024 13:28:43 +0100 Subject: [PATCH] status: update styling, add this docker dir --- status.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/status.sh b/status.sh index c502ab4..94db52e 100755 --- a/status.sh +++ b/status.sh @@ -28,9 +28,19 @@ main() { | cut -d'_' -f3 \ | sort -u )" + + printf -- "meta:\n\n" + _dir_info . + d_name="docker" + printf -- "- dir: %-17s | branch: %-8s | commit: %s\n" "${d_name}" "${branch_info}" "${commit_info}" + printf -- " - info: the repo that has all code for deployments, such as this status service\n" + _dir_info ./ssikit_trustchain - printf -- "%-36s | branch: %-8s | commit: %s\n" "${d_name}" "${branch_info}" "${commit_info}" - printf -- " note: outdated ssikit_trustchain version could be present on any instance. Hence, this is only relevant for new or fresh builds\n\n" + printf -- "- dir: %-17s | branch: %-8s | commit: %s\n" "${d_name}" "${branch_info}" "${commit_info}" + printf -- " - note: outdated ssikit_trustchain version could be present on any instance. Hence, this is only relevant for new or fresh builds\n\n" + + printf -- "idhub instances:\n\n" + for i in ${instances}; do dirs="$(find . -maxdepth 1 -type d \ | grep -E 'pilot|instance' \ @@ -39,7 +49,7 @@ main() { echo "- ${i}" for d in ${dirs}; do _dir_info "${d}" - printf -- " - %-35s | dir: %-30s | branch: %-8s | commit: %s\n" "${DOMAIN:-unknown domain}" "${d_name}" "${branch_info}" "${commit_info}" + printf -- " - %-32s | dir: %-30s | branch: %-8s | commit: %s\n" "${DOMAIN:-unknown domain}" "${d_name}" "${branch_info}" "${commit_info}" unset DOMAIN done done