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:
parent
5d802cefd5
commit
32ee02c3ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user