FS255.BitWarden.psm1

# Title: FSS.TIQ.Terraform.psm1
#
# copyright @ 2023 by TIQ Solutions GmbH
# Author: Felix Scholz <felix.scholz@tiq-solutions.de>
# Date: 27. Juni 2023 at 18:17

$ErrorActionPreference = "Stop"

$ModulePaths = @(
    "$PSScriptRoot/functions"
    "$PSScriptRoot/scripts"
)

# Dot-source the individual functions scripts from the 'public' folder into the .psm1 module file
foreach ($path in $ModulePaths)
{
    if (Test-Path -Path $path)
    {
        foreach ($file in Get-ChildItem -Path $path -Filter *.ps1 -Recurse -Exclude *.Tests.ps1)
        {
            Write-Verbose -Message "Include ${file.FullName}"
            . $file.FullName
        }
    }
}

Set-Alias -Name bw -Value "$PSScriptRoot\private\bin\bw.exe"