-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavlo Dudnytskyi
committed
May 21, 2024
1 parent
6f40574
commit c9e8746
Showing
1 changed file
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
@echo off | ||
for %%G in ( *.yaml ) do ( | ||
call :append_config_file_name %%G | ||
if %errorlevel% NEQ 0 ( | ||
echo Error while building %%G | ||
goto :eof | ||
) | ||
) | ||
if /i "%1"=="show" ( | ||
echo List of tests %configs_list% | ||
goto :eof | ||
) | ||
if /i "%1"=="wsl" ( | ||
wsl --cd "%cd%" /bin/sh -c "esphome compile %configs_list%" | ||
) else ( | ||
esphome compile %configs_list% | ||
) | ||
goto :eof | ||
|
||
:append_config_file_name | ||
set config_file=%1 | ||
if "%config_file:~0,1%" NEQ "." ( | ||
set "configs_list=%configs_list% %config_file%" | ||
) else ( | ||
echo Skipping %config_file% | ||
) | ||
goto :eof | ||
@echo off | ||
for %%G in ( *.yaml ) do ( | ||
call :append_config_file_name %%G | ||
if %errorlevel% NEQ 0 ( | ||
echo Error while building %%G | ||
goto :eof | ||
) | ||
) | ||
if /i "%1"=="show" ( | ||
echo List of tests %configs_list% | ||
goto :eof | ||
) | ||
if /i "%1"=="wsl" ( | ||
wsl --cd "%cd%" /bin/sh -c "~/.local/bin/esphome compile %configs_list%" | ||
) else ( | ||
esphome compile %configs_list% | ||
) | ||
goto :eof | ||
|
||
:append_config_file_name | ||
set config_file=%1 | ||
if "%config_file:~0,1%" NEQ "." ( | ||
set "configs_list=%configs_list% %config_file%" | ||
) else ( | ||
echo Skipping %config_file% | ||
) | ||
goto :eof |