You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works. However, if one defines a attributes hashtable on the subgraph like SubGraph @{style='filled';color='lightgrey'} -ScriptBlock { ... }. Without using the -Attributes parameter PSGraph fails with
Error: <stdin>: syntax error in line 4 near '.'
Export-PSGraph : System error.
At /gitRepos/PowerShellTooling/Public/PowerShellInfo/Out-PSModuleCallGraph.ps1:473 char:22
+ $graphData | Export-PSGraph -ShowGraph
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], ParseException
+ FullyQualifiedErrorId : System.Management.Automation.ParseException,Export-PSGraph
I guess its okay, but could maybe be improved. I would think that this happens because of parameter location awareness. If one cannot avoid using -Attributes the error message could be improved I think.
If you never reference a subgraph by name, do you even need to name it?
This is how it should look.
The text was updated successfully, but these errors were encountered: