DependencySearch

1.1.7

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-CodeDependencySta
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

Minimum PowerShell version

5.1

Installation Options

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

Install-Module -Name DependencySearch

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

Install-PSResource -Name DependencySearch

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 DependencySearch

Functions

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

PSEditions

Core Desktop

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
           1.1.1
               BUGFIX
                   Get-CorrespondingGraphCommand - MS has changed their site a little bit, edited to match the new one
           1.1.2
               EDIT
                   Get-CodeDependency - fixes, change in dependency search logic (controlled by new getDependencyOfRequiredModule parameter), added optimization parameter processJustMSGraphSDK for Get-CodeGraphPermissionRequirement
           1.1.3
               EDIT
                   Get-CodeDependency - added parameter processEveryTime for internal use in Get-CodeGraphPermissionRequirement
           1.1.4
               EDIT
                   Get-CodeDependency - added support for processing of graph api commands
               BUGFIX
                   Get-CodeDependency - fixed skipping of modules when processJustMSGraphSDK switch is used
           1.1.5
               EDIT
                   Get-CodeDependency - optimalization so that availableModules needed only if goDeep is used
           1.1.6
               EDIT
                   Get-CodeDependency - supports new dependencies (psedition, psversion)
                   Get-CodeDependencyStatus - new param dependencyParam
               BUGFIX
                   Get-CorrespondingGraphCommand - changed table headers in MS documentation
           1.1.7
               BUGFIX
                   Get-CodeDependency - fixed incorrect null comparison operator
               

FileList

Version History

Version Downloads Last updated
1.1.7 (current version) 633 5/31/2024
1.1.6 1,806 5/19/2024
1.1.5 8,552 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 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 more