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

No comments:

Post a Comment

The Elder Scrolls: Oblivion - 2023 Experience

This article is a WIP.  Setting up Oblivion in 2023 on a Steam Deck (w/ SteamOS)  Install from Steam  Vortex Experience (post base mod tools...