Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
Simple UI to explore the PowerShell Ast
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README.md
ShowPSAst.psd1
ShowPSAst.psm1

README.md

Show-Ast

This module helps visualize the PowerShell Ast with a graphical view.

The Ast is fully expanded in tree view, selecting a node in the tree view will display the corresponding text in the script and the properties of the node.

Example:

# Install the module first, then import
Install-Module ShowPSAst
Import-Module ShowPSAst

# Show the ast of a script or script module
Show-Ast $pshome\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1
Show-Ast ~\Documents\WindowsPowerShell\profile.ps1

# Show the ast of a script block
Show-Ast { echo -InputObject "Name is $name" }

If you edit the text in the script view, you can press F5 to refresh the tree view.

You can’t perform that action at this time.