Skip to content
/ AST Public
generated from PSModule/Template-PSModule

A PowerShell module for using the Abstract Syntax Tree (AST) to analyze any PowerShell code.

License

Notifications You must be signed in to change notification settings

PSModule/AST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AST

A PowerShell module for using the Abstract Syntax Tree (AST) on any PowerShell code.

Prerequisites

This uses the following external resources:

Installation

To install the module from the PowerShell Gallery, you can use the following command:

Install-PSResource -Name AST
Import-Module -Name AST

Usage

Here is a list of example that are typical use cases for the module.

Example 1: Get the function name from a script

This example shows how to get the function name from a script.

Get-FunctionName -Path 'Test-Me.ps1'
Test-Me

Find more examples

To find more examples of how to use the module, please refer to the examples folder.

Alternatively, you can use the Get-Command -Module 'This module' to find more commands that are available in the module. To find examples of each of the commands you can use Get-Help -Examples 'CommandName'.

Contributing

Coder or not, you can contribute to the project! We welcome all contributions.

For Users

If you don't code, you still sit on valuable information that can make this project even better. If you experience that the product does unexpected things, throw errors or is missing functionality, you can help by submitting bugs and feature requests. Please see the issues tab on this project and submit a new issue that matches your needs.

For Developers

If you do code, we'd love to have your contributions. Please read the Contribution guidelines for more information. You can either help by picking up an existing issue or submit a new one if you have an idea for a new feature or improvement.

Tools

About

A PowerShell module for using the Abstract Syntax Tree (AST) to analyze any PowerShell code.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks