-
Notifications
You must be signed in to change notification settings - Fork 1
/
PSAYX.psm1
33 lines (26 loc) · 947 Bytes
/
PSAYX.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<#
.SYNOPSIS
Alteryx PowerShell module
.DESCRIPTION
PowerShell library for Alteryx
.NOTES
File name: PSAYX.psm1
Author: Florian Carrier
Creation date: 2021-06-06
Last modified: 2021-06-09
Dependencies: PowerShell Tool Kit (PSTK)
.LINK
https://www.powershellgallery.com/packages/PSAYX
.LINK
https://www.powershellgallery.com/packages/PSTK
#>
# Get public and private function definition files
$Public = @( Get-ChildItem -Path "$PSScriptRoot\Public" -Filter "*.ps1" -Recurse -ErrorAction "SilentlyContinue" )
$Private = @( Get-ChildItem -Path "$PSScriptRoot\Private" -Filter "*.ps1" -Recurse -ErrorAction "SilentlyContinue" )
# Import files using dot sourcing
foreach ($File in @($Public + $Private)) {
try { . $File.FullName }
catch { Write-Error -Message "Failed to import function $($File.FullName): $PSItem" }
}
# Export public functions
Export-ModuleMember -Function $Public.BaseName