psKeePass.psm1

$Script:mInfo = $MyInvocation.MyCommand.ScriptBlock.Module
$Script:mInfo.Description = "Author: Leonardo Rizzi"

# Store generic config retrieve from parameters.json
#$Script:config = (Get-Content -LiteralPath $(Join-Path $PSScriptRoot enviroment\parameters.json) -ErrorAction Stop) -join "`n" | ConvertFrom-Json

Import-Module (Join-Path $PSScriptRoot common\common.psm1) -Prefix KP 

#Load all .NET binaries in the folder
$PathToKeePassFolder = Join-Path $PSScriptRoot bin
$assemblies = Get-ChildItem -recurse $PathToKeePassFolder| ? {($_.Extension -EQ ".dll") -or ($_.Extension -eq ".exe")}
$null = $assemblies | % { 
                            Try
                            {
                                [Reflection.Assembly]::LoadFile($_.FullName) 
                                #Write-Host $_.FullName
                            } 
                            Catch
                            { 
                                #$_
                            }
                        }



Enum EntryKeys
{
    UserName
    Title
    URL
    Notes
    Password
}

#region Include
    . (Join-Path $PSScriptRoot TabExpansion.ps1)
    . (Join-Path $PSScriptRoot Get-KPEntry.ps1)
#endregion Include



# Common Module
Export-ModuleMember -Function New-KPSecurityPassword
Export-ModuleMember -Function Get-KPSecurityPassword
Export-ModuleMember -Function Remove-KPSecurityPassword
# KeePass Module
Export-ModuleMember -Function Get-KPEntry