aboutsummaryrefslogtreecommitdiff
path: root/export/dev/bin
diff options
context:
space:
mode:
author1992414357@qq.com <1992414357@qq.com>2025-06-14 04:29:52 +0800
committer1992414357@qq.com <1992414357@qq.com>2025-06-14 04:29:52 +0800
commitf657a9c2056d4e5692ddbc19217b654277300c75 (patch)
treed09a4cb462f50a11f9c71da8fe803d55e8294015 /export/dev/bin
parentb8eb9924965180dbc236fbda4bc4a8041a10c6a6 (diff)
Update CBindings
Diffstat (limited to 'export/dev/bin')
-rw-r--r--export/dev/bin/completeion/install_completion_powershell.ps139
1 files changed, 0 insertions, 39 deletions
diff --git a/export/dev/bin/completeion/install_completion_powershell.ps1 b/export/dev/bin/completeion/install_completion_powershell.ps1
deleted file mode 100644
index 8707870..0000000
--- a/export/dev/bin/completeion/install_completion_powershell.ps1
+++ /dev/null
@@ -1,39 +0,0 @@
-$ErrorActionPreference = "Stop"
-
-try {
- # Check if padc.exe exists in the current directory
- if (-not (Test-Path -Path ".\..\padc.exe" -PathType Leaf)) {
- throw "Error: padc.exe program not found in the current directory"
- }
-
- # Generate completion script
- Write-Host "Generating padc.ps1 file..."
- .\..\padc.exe generate-completion powershell | Out-File padc.ps1 -Encoding utf8 -Force
-
- # Get target profile file path
- $targetProfile = $PROFILE.CurrentUserAllHosts
-
- # Ensure the profile directory exists
- $profileDir = Split-Path $targetProfile -Parent
- if (-not (Test-Path $profileDir)) {
- New-Item -ItemType Directory -Path $profileDir -Force | Out-Null
- }
-
- # Copy the generated script to the profile file
- Write-Host "Installing to user profile file..."
- Copy-Item padc.ps1 $targetProfile -Force
-
- # Clean up temporary files (optional)
- # Remove-Item padc.ps1 -Force
-
- Write-Host "`nComplete! Auto-completion has been successfully installed to $targetProfile" -ForegroundColor Green
- Write-Host "Effective in new terminal sessions (restart PowerShell to use)"
-}
-catch {
- Write-Host "`nError: $_" -ForegroundColor Red
- exit 1
-}
-
-# Pause the script
-Write-Host "`nPress any key to continue..."
-$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") \ No newline at end of file