mirror of
https://github.com/bitwarden/server.git
synced 2025-04-15 10:08:14 -05: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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function commandList() {
|
||||||
|
cat << EOT
|
||||||
|
Available commands:
|
||||||
|
|
||||||
|
install
|
||||||
|
update
|
||||||
|
rebuild
|
||||||
|
updateconf
|
||||||
|
updatedb
|
||||||
|
stop
|
||||||
|
updateself
|
||||||
|
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
|
|
||||||
if [ "$1" == "install" ]
|
if [ "$1" == "install" ]
|
||||||
@ -109,6 +124,11 @@ then
|
|||||||
elif [ "$1" == "updateself" ]
|
elif [ "$1" == "updateself" ]
|
||||||
then
|
then
|
||||||
downloadSelf && echo "Updated self." && exit
|
downloadSelf && echo "Updated self." && exit
|
||||||
|
elif [ "$1" == "help" ]
|
||||||
|
then
|
||||||
|
commandList
|
||||||
else
|
else
|
||||||
echo "No command found."
|
echo "No command found."
|
||||||
|
echo
|
||||||
|
commandList
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user