( result: GenerateUninstallCommandResponse )
| 204 | * Generate a Windows PowerShell uninstall script with colorful LINITE ASCII art |
| 205 | */ |
| 206 | export function generateWindowsUninstallScript( |
| 207 | result: GenerateUninstallCommandResponse |
| 208 | ): { content: string; filename: string } { |
| 209 | const content = [ |
| 210 | '# Linite - Bulk Package Uninstaller', |
| 211 | '', |
| 212 | '# Display colorful LINITE ASCII art banner', |
| 213 | ...generateWindowsBanner('🗑️ Bulk Package Uninstaller', 'Red'), |
| 214 | '', |
| 215 | ...(result.cleanupCommands || []), |
| 216 | '', |
| 217 | ...result.commands, |
| 218 | '', |
| 219 | ...(result.dependencyCleanupCommands || []), |
| 220 | ].join('\n'); |
| 221 | |
| 222 | return { |
| 223 | content, |
| 224 | filename: 'linite-uninstall.ps1', |
| 225 | }; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Helper function to download a script file |
no test coverage detected