Kevin Marquette
Kevin Marquette
> Embrace null data. I tend to call almost every command with either `-ErrorAction Stop` or `-ErrorAction Ignore`. I either care about the error and want to do something when...
I know we have general Powershell best practices and they are there for a reason, but we should put renewed emphasis on some of them. - Don't use aliases in...
As an alternate to manually creating an error record, we can just use `Write-Error` to create (and throw it) Write-Error -Exception (New-Object Exception "A generic exception to throw") -ErrorAction Stop...
I have settled on using this for all public interfaces or functions: function set-something { [cmdletbinding()] param() begin { try { #... } catch { $PSCmdlet.ThrowTerminatingError($PSItem) } } process {...
Thank you for the changes. I have been depending on the community for Linux and MacOS support so we have been slowly working out the cross platform related nuances. The...
Thank you, I will review the process. One issue with this project is that it depends on graphviz as an external application and `Install-Module` does not support the functionality to...
That is a good idea. I'll try to work that in. A quick fix is to use `$PSDefaultParameterValues` $PSDefaultParameterValues["Export-PSGraph:GraphVizPath"] = "c:\folder\dot.exe"
I should be able to call Get-Command and use whatever version that finds. Then fall back to using those default paths.
Can you provide a simple example that produces that error? If you want to try an dig into it deeper, save the graph to a file `graph {...} | Set-Content...
Thank you for your patience, not sure how I missed this one. Good call on using `Invoke-Item` instead. Code looks good as it is, I just need to test it....