Private/Initialize-TinyVaultSession.ps1
|
function Initialize-TinyVaultSession { Write-Host -ForegroundColor Blue @" ████████╗██╗███╗ ██╗██╗ ██╗██╗ ██╗ █████╗ ██╗ ██╗██╗ ████████╗ ╚══██╔══╝██║████╗ ██║╚██╗ ██╔╝██║ ██║██╔══██╗██║ ██║██║ ╚══██╔══╝ ██║ ██║██╔██╗ ██║ ╚████╔╝ ██║ ██║███████║██║ ██║██║ ██║ ██║ ██║██║╚██╗██║ ╚██╔╝ ╚██╗ ██╔╝██╔══██║██║ ██║██║ ██║ ██║ ██║██║ ╚████║ ██║ ╚████╔╝ ██║ ██║╚██████╔╝███████╗ ██║ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ "@ $current = (Import-PowerShellDataFile "$PSScriptRoot\..\TinyVault.psd1").ModuleVersion Write-Host "Current Version: " -NoNewline Write-Host $current -ForegroundColor Green $script:MasterPassword = Read-Host -AsSecureString "TinyVault Master Password" if ($script:MasterPassword.Length -eq 0) { Write-Host "Master password is required." Initialize-TinyVaultSession } } |