DependencySearch

1.1.0

Module contains functions that allows you to check for PowerShell code/script/module dependencies through static code analysis (AST).

   Some of the interesting functions:
   - Get-CodeDependency - searches for PowerShell code/script/module dependencies through static code analysis (AST). Supports also checks against PowerShell Gallery
   - Get-CodeDependencyS
Module contains functions that allows you to check for PowerShell code/script/module dependencies through static code analysis (AST).

   Some of the interesting functions:
   - Get-CodeDependency - searches for PowerShell code/script/module dependencies through static code analysis (AST). Supports also checks against PowerShell Gallery
   - Get-CodeDependencyStatus - gets (module) dependencies of given script/module and warns you about possible problems
   - Get-CorrespondingGraphCommand - translates given AzureAD or MSOnline command to Graph command
   - Get-ModuleCommandUsedInCode - searches for commands (defined in specific module) in given script file
   
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DependencySearch -RequiredVersion 1.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name DependencySearch -Version 1.1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2023 @AndrewZtrhgf. All rights reserved.

Package Details

Author(s)

  • @AndrewZtrhgf

Tags

PowerShell Dependency AST

Functions

Get-AddPSSnapinFromAST Get-CodeDependency Get-CodeDependencyStatus Get-CorrespondingGraphCommand Get-ImportModuleFromAST Get-ModuleCommandUsedInCode

Dependencies

Release Notes


           * 1.1.0
               * EDIT
                   * Get-CodeDependency - huge rewrite & lots of improvements
                   * Get-ImportModuleFromAST - align the code with changes in Get-CodeDependency
                   * Get-CodeDependencyStatus - align the code with changes in Get-CodeDependency
           

FileList

Version History

Version Downloads Last updated
1.1.5 6,681 2/29/2024
1.1.4 289 2/25/2024
1.1.3 31 2/24/2024
1.1.2 35 2/23/2024
1.1.1 181 1/25/2024
1.1.0 (current version) 34 1/23/2024
1.0.0 546 2/9/2023
0.0.3 8 1/20/2023
0.0.2 5 1/20/2023
0.0.1 5 1/20/2023
Show less