1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-23 22:01:28 +01:00

Add command list / help command (#585)

Signed-off-by: Andreas 'count' Kotes <berlincount@users.noreply.github.com>
This commit is contained in:
Andreas 'count' Kotes 2019-10-25 01:56:41 +02:00 committed by Kyle Spearrin
parent 5d802cefd5
commit 32ee02c3ad

View File

@ -73,6 +73,21 @@ function checkOutputDirNotExists() {
fi
}
function commandList() {
cat << EOT
Available commands:
install
update
rebuild
updateconf
updatedb
stop
updateself
EOT
}
# Commands
if [ "$1" == "install" ]
@ -109,6 +124,11 @@ then
elif [ "$1" == "updateself" ]
then
downloadSelf && echo "Updated self." && exit
elif [ "$1" == "help" ]
then
commandList
else
echo "No command found."
echo
commandList
fi