DependencySearch

1.1.5

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

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

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
               

FileList

Version History

Version Downloads Last updated
1.1.5 (current version) 1,595 2/29/2024
1.1.4 287 2/25/2024
1.1.3 29 2/24/2024
1.1.2 33 2/23/2024
1.1.1 179 1/25/2024
1.1.0 32 1/23/2024
1.0.0 543 2/9/2023
0.0.3 6 1/20/2023
0.0.2 3 1/20/2023
0.0.1 3 1/20/2023
Show more