20 lines
437 B
Batchfile
20 lines
437 B
Batchfile
|
|
@echo off
|
||
|
|
setlocal
|
||
|
|
|
||
|
|
if "%~1"=="" (
|
||
|
|
echo Usage: .\dockerstart.bat streamer [additional args]
|
||
|
|
exit /b 1
|
||
|
|
)
|
||
|
|
|
||
|
|
set STREAMER=%~1
|
||
|
|
shift
|
||
|
|
|
||
|
|
set EXTRA_ARGS=
|
||
|
|
:collect_args
|
||
|
|
if "%~1"=="" goto run_compose
|
||
|
|
set EXTRA_ARGS=%EXTRA_ARGS% %~1
|
||
|
|
shift
|
||
|
|
goto collect_args
|
||
|
|
|
||
|
|
:run_compose
|
||
|
|
docker compose --env-file .env.development -f docker-compose.yml -f docker-compose.override.yml run --rm twitch-archive python twitch-archive.py -u %STREAMER%%EXTRA_ARGS%
|