21 lines
697 B
Batchfile
21 lines
697 B
Batchfile
@echo off
|
|
rem Copy the sd-enhanced-components skill into a solution folder.
|
|
rem Usage: copy-to-solution.cmd <solution-dir>
|
|
setlocal
|
|
set "SKILL_DIR=%~dp0"
|
|
if "%~1"=="" (
|
|
echo Usage: %~nx0 ^<solution-dir^>
|
|
echo Example: %~nx0 "F:\pycode\wpf\src\WinFormsDesigner.Fx48\Samples\COOO\scr\MyApp"
|
|
exit /b 1
|
|
)
|
|
if not exist "%~1" (
|
|
echo ERROR: directory not found: %~1
|
|
exit /b 1
|
|
)
|
|
set "DEST=%~1\.agents\skills\sd-enhanced-components"
|
|
xcopy "%SKILL_DIR%SKILL.md" "%DEST%\" /Y /I >nul
|
|
xcopy "%SKILL_DIR%references" "%DEST%\references\" /Y /E /I >nul
|
|
echo Copied skill to: %DEST%
|
|
echo Files: SKILL.md + references ^(components / winforms-controls / winforms-components / codegen^)
|
|
endlocal
|