From 16fc40f8ae822fac001db88b37b688c0de6506b4 Mon Sep 17 00:00:00 2001 From: janskiba Date: Wed, 14 Feb 2024 14:28:16 +0000 Subject: [PATCH] feat: Add `bridgehead logs` command --- bridgehead | 5 +++++ lib/functions.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bridgehead b/bridgehead index 8922174..31a838e 100755 --- a/bridgehead +++ b/bridgehead @@ -102,6 +102,11 @@ case "$ACTION" in bk_is_running exit $? ;; + logs) + loadVars + shift 2 + exec $COMPOSE -p $PROJECT -f ./minimal/docker-compose.yml -f ./$PROJECT/docker-compose.yml $OVERRIDE logs -f $@ + ;; update) loadVars exec ./lib/update-bridgehead.sh $PROJECT diff --git a/lib/functions.sh b/lib/functions.sh index 4d2bb2f..6a45d35 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -53,7 +53,7 @@ checkOwner(){ } printUsage() { - echo "Usage: bridgehead start|stop|is-running|update|install|uninstall|adduser|enroll PROJECTNAME" + echo "Usage: bridgehead start|stop|logs|is-running|update|install|uninstall|adduser|enroll PROJECTNAME" echo "PROJECTNAME should be one of ccp|bbmri" }