Generate a dependency tree of ModuleForge PowerShell scripts, either in terminal or a mermaid flowchart
get-mfDependencyTree [[-referenceData] <Object[]>] [[-outputType] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
The `get-mfDependencyTree` function processes an array of objects representing PowerShell scripts and their dependencies. It generates a visual representation of the dependency tree, either as a text-based tree in the terminal or as a Mermaid diagram. This function helps in understanding the relationships and dependencies between different scripts and modules in a project.
$folderItemDetails = get-mfFolderItemDetails -path (get-item .\source).fullname
get-mfDependencyTree ($folderItemDetails|Select-Object relativePath,dependencies)
Show files and any dependencies
What Reference Data are we looking at. See function example for how to retrieve
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: (get-mfFolderItemDetails -path (get-item source).fullname)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Terminal
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Adrian Andersson