Skip to content

Commit e414823

Browse files
committed
Initial commit
empty module
0 parents  commit e414823

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Photo.Shell/Photo.Shell.psd1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

Photo.Shell/Photo.Shell.psm1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Photo.Shell
2+
3+
This is a PowerShell module for image processing.

0 commit comments

Comments
 (0)