PowerShell 7 - Scaffold Structure (Follow-up)

Some interesting hurdles crossed with this simple philosophy:

Organize custom functionality in a structured, standard format.

Main Scaffold

  • "Process" and "Begin" segments
  • Status Notifications - Output Logging
  • Exception Handling - Generically
  • Artifact Publishing

Custom Structure

  • AssertParameters (arg testing/validation)
  • MainProcess
  • $Script:Artifact.Data
  • $Script:Artifact.Files

Notes

  • Simple dot sourcing the "custom" script, does not pull in $Script:args variables. (Must explicitly pass $Script:args)
  • Almost ready for 'main' branch merge

Comments

Popular posts from this blog

Real World NodeJS w/ Continuous Integration

OWASP Training @ PluralSight

Further use of Octopus Deploy