PowerShell.MCP v1.3.7 - Enhanced Text File Cmdlets with Visual Diff Preview #21
yotsuda
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Enhanced Text File Cmdlets with Visual Diff Preview
This release brings significant improvements to text file operations, featuring a new visual diff preview for
-WhatIf, tail display support with negative line ranges, and consistent ANSI color output across all cmdlets.✨ What's New
🔍 Visual Diff Preview with -WhatIf
Update-MatchInFile -WhatIfnow displays a detailed line-by-line diff preview showing exactly what will change:📜 Tail Display with Negative LineRange
Show-TextFilenow supports negative line numbers to display the last N lines of a file:🎨 Consistent ANSI Color Output
All text file cmdlets now use a unified color scheme:
==> filename <==)📊 What's Changed Since v1.3.6
New Features
Visual Diff Preview:
Update-MatchInFile -WhatIfshows detailed before/after comparison-Confirmwith "No" now exits silently without outputTail Display:
RotateBuffer<T>class for efficient tail operationsShow-TextFile -LineRange -Ndisplays last N lines100,-1) mean "to end of file"Color Improvements:
Update-LinesInFileoutputImprovements
Bug Fixes
Show-TextFilegapLine handling to prevent duplicate outputCode Quality
Test-TextFileContainscmdletRotateBufferfor consistent tail handling🔧 Technical Details
RotateBuffer
A new fixed-capacity circular buffer for efficient "last N items" collection:
LineRange Parameter Enhancements
55,105,-1or5,0-10-10,-1📄 Installation & Upgrade
Update MCP Configuration
(Get-Module PowerShell.MCP).ModuleBase{ "mcpServers": { "PowerShell": { "command": "C:\\Users\\YourName\\Documents\\PowerShell\\Modules\\PowerShell.MCP\\1.3.7\\bin\\PowerShell.MCP.Proxy.exe" } } }Note: Adjust path as needed for your environment.
📖 Full Guide: https://github.com/yotsuda/PowerShell.MCP#quick-start
Full Documentation: https://github.com/yotsuda/PowerShell.MCP
Questions? GitHub Discussions
Report Issues: GitHub Issues
⚠ Security Notice: Provides complete PowerShell access. Use in trusted environments only.
This discussion was created from the release PowerShell.MCP v1.3.7 - Enhanced Text File Cmdlets with Visual Diff Preview.
Beta Was this translation helpful? Give feedback.
All reactions