Justin Grote

Results 875 comments of Justin Grote

Either PowerShell/PowerShell#10750 is resolved or, as a workaround, if the first -is match fails, try the GetType().Name method. Definitely also log that it was matching for a custom type. If...

@nohwnd The issue is not using multiple should in a function, that works fine with the first example. The issue is to be able to use the truncated syntax shown...

Curious what people think about Private Function naming convention. I know the common way in other languages is to do _myPrivateFunction, but Powershell style discourages this. So far I've thought...

I made a [simple private function called ThrowUser ](https://gist.github.com/JustinGrote/a21072f82104819295bc6b89abd56847) that works just like throw but in a powershell module shows the "outer" stacktrace, so it's more user friendly for a...

> To support partial version matching we need a full list of all versions in one spot that can be sorted and matched. It's possible there's a bug specifically with...

Thanks! Might be an intellisense miss.

> And while we are at it, don't you think the "foreach-item" is redundant? as it's already covered by the normal "foreach" snippet Probably, it was maintained for backwards compatibility...

Could be intellisense, if you intellisense a portion of a name of a command that's advertised in a module as part of PSModulePath, it'll import it so it can read...

> Isn't comment-based help supposed to go above the function, not in the function definition? Anyway, this looks like a PSSA issue, can you repro it using PSSA directly to...