1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

list commands

This commit is contained in:
Kyle Spearrin
2019-10-24 20:04:09 -04:00
parent 32ee02c3ad
commit f6d610e4e4
2 changed files with 37 additions and 7 deletions

View File

@ -8,6 +8,7 @@ param (
[switch] $updateconf,
[switch] $updatedb,
[switch] $updateself,
[switch] $help,
[string] $output = ""
)
@ -49,6 +50,25 @@ function Check-Output-Dir-Not-Exists {
}
}
function List-Commands {
Write-Line "
Available commands:
-install
-start
-restart
-stop
-update
-updatedb
-updateself
-updateconf
-rebuild
-help
See more at https://help.bitwarden.com/article/install-on-premise/#script-commands
"
}
function Write-Line($str) {
if($env:BITWARDEN_QUIET -ne "true") {
Write-Host $str
@ -119,6 +139,11 @@ elseif ($updateself) {
Download-Self
Write-Line "Updated self."
}
elseif ($help) {
List-Commands
}
else {
Write-Line "No command found."
Write-Line ""
List-Commands
}