feat: add update and start script for dummies #828
22
UPDATE AND START SERVER.bat
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|||||||
|
@echo off
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
echo Updating SpaceNinjaServer...
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
git pull
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Add error handling and branch specification for git operations. The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Add error handling and branch specification for git operations.**
The `git pull` command should include error handling and specify the branch to avoid unintended merges.
```diff
-git pull
+@echo Updating repository...
+git pull origin main || (
+ echo Failed to update repository
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Updating repository...
git pull origin main || (
echo Failed to update repository
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
if exist static\data\0\ (
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
echo Updating stripped assets...
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
cd static\data\0\
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
git pull
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
cd ..\..\..\
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
)
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
echo Updating dependencies...
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
call npm i
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
call npm run build
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
call npm run start
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Add build validation and process management. The build and start commands need error handling and process management.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Add build validation and process management.**
The build and start commands need error handling and process management.
```diff
-call npm run build
-call npm run start
+@echo Building application...
+call npm run build || (
+ echo Build failed
+ pause
+ exit /b 1
+)
+
+@echo Starting server...
+call npm run start || (
+ echo Server failed to start
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Building application...
call npm run build || (
echo Build failed
pause
exit /b 1
)
@echo Starting server...
call npm run start || (
echo Server failed to start
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
echo SpaceNinjaServer seems to have crashed.
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
:a
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
pause > nul
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
goto a
|
||||||
![]() 🛠️ Refactor suggestion Ensure consistent use of The
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+ echo Failed to install dependencies
+ pause
+ exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
echo Failed to install dependencies
pause
exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
![]() 🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
_:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
- cd static\data\0\
- git pull
- cd ..\..\..\
-)
+if exist static\data\0\ (
+ @echo Updating data repository...
+ pushd static\data\0\ || (
+ echo Failed to enter data directory
+ pause
+ exit /b 1
+ )
+ git pull origin main || (
+ echo Failed to update data repository
+ popd
+ pause
+ exit /b 1
+ )
+ popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
@echo Updating data repository...
pushd static\data\0\ || (
echo Failed to enter data directory
pause
exit /b 1
)
git pull origin main || (
echo Failed to update data repository
popd
pause
exit /b 1
)
popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit -->
|
🛠️ Refactor suggestion
Ensure consistent use of
call
and add error handling for npm operations.The
npm
commands should be consistent in usingcall
and include error handling.📝 Committable suggestion
🛠️ Refactor suggestion
Improve directory handling and add validation.
The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
🛠️ Refactor suggestion
Ensure consistent use of
call
and add error handling for npm operations.The
npm
commands should be consistent in usingcall
and include error handling.📝 Committable suggestion
🛠️ Refactor suggestion
Improve directory handling and add validation.
The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion