added --config flag
Some checks failed
Run Integration Tests / test (push) Failing after 41s

This commit is contained in:
partisan 2025-02-21 20:29:43 +01:00
parent f213c958f4
commit f059715b41
3 changed files with 20 additions and 5 deletions

View file

@ -5,6 +5,7 @@ rem Initialize variables
set SKIP_CONFIG=""
set PORT=""
set DOMAIN=""
set CONFIG_FILE=""
set BUILD_OUTPUT=qgato.exe
rem Parse arguments
@ -22,6 +23,12 @@ if "%~1"=="--domain" (
shift
goto parse_args
)
if "%~1"=="--config" (
set CONFIG_FILE=%~2
shift
shift
goto parse_args
)
if "%~1"=="--skip-config-check" (
set SKIP_CONFIG=--skip-config-check
shift
@ -60,6 +67,7 @@ rem Construct the command
set CMD=%BUILD_OUTPUT% !SKIP_CONFIG!
if not "%PORT%"=="" set CMD=!CMD! --port %PORT%
if not "%DOMAIN%"=="" set CMD=!CMD! --domain %DOMAIN%
if not "%CONFIG_FILE%"=="" set CMD=!CMD! --config %CONFIG_FILE%
rem Informative output
echo Starting application with command: !CMD!