MCPcopy Create free account
hub / github.com/Sagyam/linite / generateWindowsUninstallScript

Function generateWindowsUninstallScript

src/lib/script-generator.ts:206–226  ·  view source on GitHub ↗
(
  result: GenerateUninstallCommandResponse
)

Source from the content-addressed store, hash-verified

204 * Generate a Windows PowerShell uninstall script with colorful LINITE ASCII art
205 */
206export 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

Callers 2

handleDownloadUninstallFunction · 0.90
handleDownloadFunction · 0.90

Calls 1

generateWindowsBannerFunction · 0.85

Tested by

no test coverage detected