Closed potatoqualitee closed 1 year ago
@potatoqualitee I'm not quite sure what's going on there, but the error isn't due the use of the parameter named Value. I was able to create a very simple example with a parameter named Value
. Also, the error message is pretty clear - it's having trouble converting a switch to a decimal, which is confusing in itself.
Would you be willing to share the offending configuration file?
Hey @JamesWTruher, This is where I used it in my own code. I ended up setting an alias to Value which worked for my needs.
https://github.com/potatoqualitee/pastel/blob/main/src/Edit-PastelColorProperty.ps1#L24
The error message is confusing to me because I can make it go away simply by renaming the variable.
Prerequisites
Steps to reproduce
This works
This does not
This is what the output looks like
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
1.0.0
Visuals
No response