Files
Rules/bootstrap.ps1

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