mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-25 04:34:13 +01:00
26 lines
708 B
PowerShell
26 lines
708 B
PowerShell
|
|
# Clear Copilot context files
|
||
|
|
# This script removes AGENTS.md and related copilot instruction files
|
||
|
|
|
||
|
|
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||
|
|
if (-not $repoRoot) {
|
||
|
|
$repoRoot = (Get-Location).Path
|
||
|
|
}
|
||
|
|
|
||
|
|
$filesToRemove = @(
|
||
|
|
"AGENTS.md",
|
||
|
|
".github\instructions\runner-settings-ui.instructions.md",
|
||
|
|
".github\instructions\common-libraries.instructions.md"
|
||
|
|
)
|
||
|
|
|
||
|
|
foreach ($file in $filesToRemove) {
|
||
|
|
$filePath = Join-Path $repoRoot $file
|
||
|
|
if (Test-Path $filePath) {
|
||
|
|
Remove-Item $filePath -Force
|
||
|
|
Write-Host "Removed: $filePath" -ForegroundColor Green
|
||
|
|
} else {
|
||
|
|
Write-Host "Not found: $filePath" -ForegroundColor Yellow
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
Write-Host "Done." -ForegroundColor Cyan
|