SSPowerShellBoilerplate/module/Module.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore
<%
    if ($PLASTER_PARAM_SourceType -contains 'CSharp') {
        '
Import-Module $PSScriptRoot\<%=$PLASTER_PARAM_ModuleName%>.dll'

    }
%>

# Include all function files.
Get-ChildItem $PSScriptRoot\Public\*.ps1, $PSScriptRoot\Private\*.ps1 | ForEach-Object {
    . $PSItem.FullName
}

# Export only the functions using PowerShell standard verb-noun naming.
# Be sure to list each exported functions in the FunctionsToExport field of the module manifest file.
# This improves performance of command discovery in PowerShell.
Export-ModuleMember -Function *-*<%=if ($PLASTER_PARAM_SourceType -contains 'CSharp') { ' -Cmdlet *-*' }%>