Skip to content

Add Main-Shell.ps1 master launcher and Validate-Scripts.ps1 checker#15

Open
jasrasr wants to merge 4 commits intomainfrom
claude/powershell-master-validation-aCbrv
Open

Add Main-Shell.ps1 master launcher and Validate-Scripts.ps1 checker#15
jasrasr wants to merge 4 commits intomainfrom
claude/powershell-master-validation-aCbrv

Conversation

@jasrasr
Copy link
Owner

@jasrasr jasrasr commented Mar 16, 2026

Main-Shell.ps1

  • Interactive console menu that discovers all 400+ repo scripts by category
  • Browse by directory, search by keyword, or jump straight to any script
  • Run scripts in the current session or launch them in a new pwsh window
  • Integrates with Validate-Scripts.ps1 via the [V] menu option

Validate-Scripts.ps1

  • AST-based syntax validation for every .ps1 in the repository
  • Checks #Requires -Version against the running PowerShell version
  • Detects missing/uninstalled module dependencies (Import-Module, Connect-* cmdlets)
  • Flags hardcoded Windows paths, dangerous cmdlets, missing error handling,
    and plain-text credential patterns
  • Colour-coded console report with Pass/Info/Warning/Error severity levels
  • Optional -ExportCsv output, -IncludePassing flag, and -Category filter

https://claude.ai/code/session_01PsNTPi5ypXGXWy5nEcvM5t

claude and others added 4 commits March 16, 2026 20:57
Main-Shell.ps1
- Interactive console menu that discovers all 400+ repo scripts by category
- Browse by directory, search by keyword, or jump straight to any script
- Run scripts in the current session or launch them in a new pwsh window
- Integrates with Validate-Scripts.ps1 via the [V] menu option

Validate-Scripts.ps1
- AST-based syntax validation for every .ps1 in the repository
- Checks #Requires -Version against the running PowerShell version
- Detects missing/uninstalled module dependencies (Import-Module, Connect-* cmdlets)
- Flags hardcoded Windows paths, dangerous cmdlets, missing error handling,
  and plain-text credential patterns
- Colour-coded console report with Pass/Info/Warning/Error severity levels
- Optional -ExportCsv output, -IncludePassing flag, and -Category filter

https://claude.ai/code/session_01PsNTPi5ypXGXWy5nEcvM5t
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.

2 participants