Show CommandDependency - PPOSHGROUP/PPoShDemo GitHub Wiki

Show-CommandDependency

PPoShDemo -> Show-CommandDependency.ps1

Synopsis

Function that uses graphviz to create a graph of function dependancies.

Syntax

Show-CommandDependency [-Path] <String> [[-Folders] <String[]>] 
[[-DestinationFilePath] <String>] [-HideGraph] [<CommonParameters>]

Description

Requires GraphViz and PSGrapsh modules to create a grapshical representation of references in functions.

Parameters

-Path<String>

Path with folders with functions to search.

  • PipelineInput: false
  • Required: true

-Folders<String[]> (default: @('Public', 'Private', 'Internal'))

Which folders should be included in recursive search for functions

  • DefaultValue: @('Public', 'Private', 'Internal')
  • PipelineInput: false
  • Required: false

-DestinationFilePath<String>

FileName where grapsh should be generated.

  • PipelineInput: false
  • Required: false

-HideGraph<SwitchParameter> (default: False)

If set will not show graph after it's generated.

  • DefaultValue: False
  • PipelineInput: false
  • Required: false

Examples

Example 1

Show-CommandDependency.ps1 -Path Value -Folders Value -DestinationFilePath Value -HideGraph

Describe what this call does

⚠️ **GitHub.com Fallback** ⚠️