Ein für Shopware 6 vorbereitet Systemmanagment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
726 B

#!/bin/bash
### DO NOT EDIT THIS FILE
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." &> /dev/null && pwd)/includes/bash_header"
function usage {
echo
echoMainTitle "List all projects"
echo
echoSubTitle "Usage:"
echo
echo "list-projects"
echo
echo "--help Prints this message"
echo
}
function listProjects {
echo >&2
echoSubTitle "Projects list" >&2
echo >&2
for i in "${!projects[@]}"
do
echo "- Shortname: ${shortnames[$i]}
Customer: ${customers[$i]}
Project: ${projects[$i]}" >&2
echo
done
}
echo
echoMainTitle "Listing projects"
if [ "${#projects[@]}" -eq 0 ]
then
echo
echo "There are currently no projects setted up"
echo
else
listProjects
fi