Files
Rules/bootstrap.ps1
T
PapaTramp 7f8e7c0cb2 init-cursor: авто-bootstrap git на новом ПК, install.ps1 с Gitea.
Один вызов init-cursor настраивает SSH при необходимости и копирует rules в проект.
2026-06-18 11:23:30 +10:00

29 lines
680 B
PowerShell

#Requires -Version 5.1
<#
.SYNOPSIS
Обёртка над Invoke-MachineBootstrap.ps1 (совместимость).
#>
[CmdletBinding()]
param(
[string]$RulesDest = '',
[switch]$SkipClone,
[switch]$SkipProfile,
[switch]$WhatIf
)
$root = $PSScriptRoot
if (-not $RulesDest) {
$RulesDest = Join-Path $HOME 'CursorRules'
}
& (Join-Path $root 'scripts\Invoke-MachineBootstrap.ps1') @{
Root = $root
RulesDest = $RulesDest
SkipClone = $SkipClone.IsPresent
SkipProfile = $SkipProfile.IsPresent
WhatIf = $WhatIf.IsPresent
}
Write-Host ''
Write-Host '[+] Bootstrap complete. In a project run: init-cursor' -ForegroundColor Green