Add default value to property
majkinetor opened this issue · comments
I.e.
param (
$aEnvironment = (property ENVIRONMENT 'Development')
)
Hi @majkinetor . Is this a question or suggestion? It's not clear, sorry. Especially because property
already supports default values, exactly as you show in the sample.
Really ? OK sorry then :) Perhaps I had a typo or something ...
I also looked into tests and there wasn't any :)
No problem at all! Tests are here https://github.com/nightroman/Invoke-Build/blob/master/Tests/Property.test.ps1