mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 12:36:40 +00:00
Add -help to deploy_stack.ps1
Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
@ -2,9 +2,19 @@
|
|||||||
|
|
||||||
param (
|
param (
|
||||||
[switch] $noAuth,
|
[switch] $noAuth,
|
||||||
[switch] $n
|
[switch] $n,
|
||||||
|
[switch] $help,
|
||||||
|
[switch] $h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ($help -Or $h) {
|
||||||
|
Write-Host "Usage: "
|
||||||
|
Write-Host " [default]`tdeploy the OpenFaaS core services"
|
||||||
|
Write-Host " -noAuth [-n]`tdisable basic authentication"
|
||||||
|
Write-Host " -help [-h]`tdisplays this screen"
|
||||||
|
Exit
|
||||||
|
}
|
||||||
|
|
||||||
if (Get-Command docker -errorAction SilentlyContinue)
|
if (Get-Command docker -errorAction SilentlyContinue)
|
||||||
{
|
{
|
||||||
docker node ls 2>&1 | out-null
|
docker node ls 2>&1 | out-null
|
||||||
|
Reference in New Issue
Block a user