Skip to content

Commit

Permalink
Improve app-frame.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skrysmanski committed Mar 9, 2024
1 parent 84e73c1 commit 55c3ff7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions content/articles/powershell/app-frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ topics:
- powershell
---

Basic structure for a PowerShell "application":

```powershell
#!/usr/bin/env pwsh
# This file contains a basic structure for a PowerShell application.
param(
[Parameter(Mandatory=$True)]
[string]
Expand All @@ -26,9 +26,13 @@ param(
$script:ErrorActionPreference = 'Stop'
try {
########################################################################
#
# Application code here
#
########################################################################
}
catch {
function LogError([string] $exception) {
Expand Down

0 comments on commit 55c3ff7

Please sign in to comment.