DEV Community

Discussion on: Automating Salesforce deployments with PowerShell

Collapse
 
alanmbarr profile image
Alan Barr

Powershell is awesome, you might look into named parameters and validations on those parameters saves a lot of headaches. I typically lean toward using Write-Output instead of Write-Host but that might be a personal preference.

Collapse
 
manzanit0 profile image
Javier Garcia

Yeah, thanks for the heads up Alan :)
As for the Write-Host, the main reason to use it is the colors. Since it's mainly a script to be executed by the user from the console, I thought the colors would be nice. But otherwise, just like you said, Write-Output is always better.