DependencySearch

1.1.3

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.3

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

Install-PSResource -Name DependencySearch -Version 1.1.3

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

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
           

FileList

Version History

Version Downloads Last updated
1.1.7 40,586 5/31/2024
1.1.6 1,809 5/19/2024
1.1.5 8,555 2/29/2024
1.1.4 292 2/25/2024
1.1.3 (current version) 34 2/24/2024
1.1.2 38 2/23/2024
1.1.1 184 1/25/2024
1.1.0 37 1/23/2024
1.0.0 552 2/9/2023
0.0.3 11 1/20/2023
0.0.2 8 1/20/2023
0.0.1 8 1/20/2023
Show more