File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ @ {
3+ RootModule = ' Photo.Shell.psm1'
4+ ModuleVersion = ' 1.0.0'
5+ GUID = ' 7c120cb8-77c1-47aa-a17d-51ce26a679ae'
6+ Author = ' Alan Plocieniak'
7+ CompanyName = ' Alan Plocieniak'
8+ Copyright = ' (c) 2022 Alan Plocieniak. All rights reserved.'
9+ Description = ' PowerShell module for image processing.'
10+ PowerShellVersion = ' 5.0'
11+ FunctionsToExport = ' *'
12+ PrivateData = @ {
13+ PSData = @ {
14+ }
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ # Get public and private function definition files.
2+ $Public = @ ( Get-ChildItem - Path $PSScriptRoot \Public - Recurse - Filter * .ps1 - ErrorAction SilentlyContinue )
3+ $Private = @ ( Get-ChildItem - Path $PSScriptRoot \Private - Recurse - Filter * .ps1 - ErrorAction SilentlyContinue )
4+
5+ # Dot source the files
6+ Foreach ($import in @ ($Public + $Private )) {
7+ try {
8+ . $import.fullname
9+ }
10+ catch {
11+ Write-Error - Message " Failed to import function $ ( $import.fullname ) : $_ "
12+ }
13+ }
14+ Export-ModuleMember - Function $Public.Basename
Original file line number Diff line number Diff line change 1+ # Photo.Shell
2+
3+ This is a PowerShell module for image processing.
You can’t perform that action at this time.
0 commit comments