Rayanox / PSDependencyWalker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSDependencyWalker

Get-DWCommand

Get the Command and its definition When you pipe Get-Module with this cmdlet, it return the module name, commands and definitions

C:\PS> Get-Module Get-TCBuildType | Get-DWCommand

Get-DWDependencies

Get the dependencies for a given DWCommand It is hard to get cmdlet dependencies in order to refactor powershell cmdlet. With this you can analyse impact this cmdlet return the module name, command name and dependencies

Get-module teamcity | Get-DWCommand | Get-DWDependencies

How to Analyse Dependencies

  1. Get the command of the module to refactor for example Teamcity Module
$teamcity = Get-module teamcity | Get-DWCommand | % Command
  1. Get the dependencies for all installed modules
Get-module | Get-DWCommand | Get-DWDependencies | ? { $teamcity -contains $_.Dependency }

About


Languages

Language:PowerShell 100.0%