SecretManagement.KeePass.Extension/SecretManagement.KeePass.Extension.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

using namespace Microsoft.PowerShell.SecretManagement

$ErrorActionPreference = 'Stop'
Get-ChildItem "$PSScriptRoot/Private" | Foreach-Object {
    . $PSItem.FullName
}
$publicFunctions = Get-ChildItem "$PSScriptRoot/Public" | Foreach-Object {
    . $PSItem.FullName
    #Output the name of the function assuming it is the same as the .ps1 file so it can be exported
    $PSItem.BaseName
}
Set-KeePassConfigFilePath -Path "$ENV:LOCALAPPDATA/Keepass/Keepass.SecretManagement.Configuration.xml"

Export-ModuleMember $publicFunctions