2018-03-09 14:02:51 +01:00
|
|
|
function Get-ModuleBase {
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
|
|
Returns the base path of the current module.
|
|
|
|
|
|
|
|
.DESCRIPTION
|
|
|
|
This is just a wrapper for enabling pester tests.
|
|
|
|
|
|
|
|
.OUTPUTS
|
|
|
|
Returns the base path as string
|
2022-06-28 08:56:33 +02:00
|
|
|
#>
|
2018-03-09 14:02:51 +01:00
|
|
|
|
|
|
|
[CmdletBinding()]
|
2022-06-28 08:56:33 +02:00
|
|
|
[OutputType([string])]
|
|
|
|
param ()
|
|
|
|
begin {}
|
2018-03-09 14:02:51 +01:00
|
|
|
process {
|
|
|
|
return $MyInvocation.MyCommand.Module.ModuleBase
|
|
|
|
}
|
2022-06-28 08:56:33 +02:00
|
|
|
end {}
|
2018-03-09 14:02:51 +01:00
|
|
|
}
|