From 3b03f87a02458f719e2eb4bf112a13441b427d14 Mon Sep 17 00:00:00 2001 From: ‘chensiAb’ <‘chenchenco03@163.com’> Date: Tue, 25 Mar 2025 13:54:34 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- _cursor.ai/link-rules.cmd | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/_cursor.ai/link-rules.cmd b/_cursor.ai/link-rules.cmd new file mode 100644 index 0000000..8240806 --- /dev/null +++ b/_cursor.ai/link-rules.cmd @@ -0,0 +1,29 @@ +@echo off +set BASE_DIR=%~dp0..\..\..\ +cd %BASE_DIR% || ( + echo Failed to change directory. Please verify if the path is correct. + goto :end +) + +if not exist "src\components\_cursor.ai\rules" ( + echo Source directory does not exist: src\components\_cursor.ai\rules + goto :end +) + +if exist ".cursor\rules" ( + echo Target directory already exists: .cursor\rules + choice /c YN /m "Delete existing directory and recreate the link? (Y/N)" + if errorlevel 2 goto :end + rmdir ".cursor\rules" +) + +mklink /j ".cursor\rules" "src\components\_cursor.ai\rules" +if %errorlevel% equ 0 ( + echo Link created successfully! +) else ( + echo Failed to create link. Please check if you have administrator privileges. +) + +:end + +pause \ No newline at end of file -- Gitblit v1.9.1