Skip to content

feat: v0.2 — two-tier detection, PSStyle, cross-platform install#1

Merged
ericchansen merged 2 commits intomainfrom
feat/v0.2-improvements
Feb 23, 2026
Merged

feat: v0.2 — two-tier detection, PSStyle, cross-platform install#1
ericchansen merged 2 commits intomainfrom
feat/v0.2-improvements

Conversation

@ericchansen
Copy link
Copy Markdown
Owner

What's new in v0.2

Addresses findings from a multi-model Round Table code review.

Two-tier detection

  • CommandNotFoundAction hook — catches commands that don't exist (grep, awk, sed, touch, etc.)
  • Prompt handler — catches aliased commands used with bash-style flags (ls -la, rm -rf, ps aux, etc.)

Improvements

  • All 75+ mappings now tagged with \Type\ field: \Hook, \Aliased, or \Executable\
  • \System.Management.Automation.PSStyle\ support on PS 7.2+ with raw ANSI fallback for 7.0-7.1
  • Type-specific messaging (different guidance for aliased vs hook vs executable)
  • \Get-CommandMapping -Type Hook\ filter parameter
  • Cross-platform \install.ps1\ (Linux/macOS support)
  • MIT LICENSE file added
  • ProjectUri/LicenseUri/ReleaseNotes filled in manifest
  • Test suite expanded from 10 to 18 tests (all passing)
  • README updated with detection docs and command coverage breakdown

Test results

\
Tests Passed: 18, Failed: 0, Skipped: 0
\\

ericchansen and others added 2 commits February 23, 2026 15:59
…, cross-platform install

Addresses Round Table review findings:

- Add Type metadata (Hook/Aliased/Executable) to all 75+ command mappings
- Add prompt handler for aliased commands (catches ls -la, rm -rf, etc.)
- Use \System.Management.Automation.PSStyle on PS7.2+ with raw ANSI fallback for 7.0-7.1
- Adapt suggestion messaging per detection type
- Make install.ps1 cross-platform (\C:\Users\erichansen\OneDrive - Microsoft\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules-based)
- Add -Type filter to Get-CommandMapping
- Add LICENSE file (MIT)
- Fill ProjectUri/LicenseUri/ReleaseNotes in manifest
- Expand test suite to 18 tests (was 10)
- Update README with two-tier detection docs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Runs on ubuntu, windows, and macos with PowerShell 7.
Uploads NUnit XML test results as artifacts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ericchansen ericchansen merged commit 33b1b91 into main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant