Confluence.psm1
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Contains long links.')] [CmdletBinding()] param() $scriptName = 'Confluence' Write-Verbose "[$scriptName] - Importing module" #region - From [init] Write-Verbose "[$scriptName] - [init] - Processing folder" #region - From [init] - [initializer] Write-Verbose "[$scriptName] - [init] - [initializer] - Importing" Write-Verbose '-------------------------------' Write-Verbose '--- THIS IS AN INITIALIZER ---' Write-Verbose '-------------------------------' Write-Verbose "[$scriptName] - [init] - [initializer] - Done" #endregion - From [init] - [initializer] Write-Verbose "[$scriptName] - [init] - Done" #endregion - From [init] #region - From [functions] - [public] Write-Verbose "[$scriptName] - [functions] - [public] - Processing folder" #region - From [functions] - [public] - [Get-PSModuleTest] Write-Verbose "[$scriptName] - [functions] - [public] - [Get-PSModuleTest] - Importing" #Requires -Modules Utilities function Get-PSModuleTest { <# .SYNOPSIS Performs tests on a module. .EXAMPLE Test-PSModule -Name 'World' "Hello, World!" #> [CmdletBinding()] param ( # Name of the person to greet. [Parameter(Mandatory)] [string] $Name ) Write-Output "Hello, $Name!" } Write-Verbose "[$scriptName] - [functions] - [public] - [Get-PSModuleTest] - Done" #endregion - From [functions] - [public] - [Get-PSModuleTest] Write-Verbose "[$scriptName] - [functions] - [public] - Done" #endregion - From [functions] - [public] #region - From [finally] Write-Verbose "[$scriptName] - [finally] - Importing" Write-Verbose '------------------------------' Write-Verbose '--- THIS IS A LAST LOADER ---' Write-Verbose '------------------------------' Write-Verbose "[$scriptName] - [finally] - Done" #endregion - From [finally] $exports = @{ Alias = '*' Cmdlet = '' Function = 'Get-PSModuleTest' } Export-ModuleMember @exports |