install: SSH clone first; убрать irm для приватного repo.
This commit is contained in:
+5
-3
@@ -8,8 +8,9 @@
|
||||
- если машина не настроена: SSH, Gitea keys, clone Rules в $HOME\CursorRules
|
||||
- затем копирует rules в текущий репозиторий и настраивает remotes
|
||||
|
||||
Первый запуск на голом ПК (из каталога проекта):
|
||||
irm https://git.kalinamall.ru/PapaTramp/Rules/raw/branch/main/install.ps1 | iex
|
||||
Первый запуск (приватный repo — через git clone, см. README):
|
||||
git clone --depth 1 ssh://git@git.kalinamall.ru:2222/PapaTramp/Rules.git $HOME\CursorRules
|
||||
& $HOME\CursorRules\install.ps1
|
||||
|
||||
.EXAMPLE
|
||||
cd C:\Users\papat\Projects\MyRepo
|
||||
@@ -47,7 +48,8 @@ function Initialize-CursorRulesEnvironment {
|
||||
|
||||
if (-not $bootstrapRoot) {
|
||||
Write-Host 'Error: CursorRules not found. Run install.ps1 from Gitea first:' -ForegroundColor Red
|
||||
Write-Host ' irm https://git.kalinamall.ru/PapaTramp/Rules/raw/branch/main/install.ps1 | iex' -ForegroundColor Yellow
|
||||
Write-Host ' git clone --depth 1 ssh://git@git.kalinamall.ru:2222/PapaTramp/Rules.git $HOME\CursorRules' -ForegroundColor Yellow
|
||||
Write-Host ' & $HOME\CursorRules\install.ps1' -ForegroundColor Yellow
|
||||
return $false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user