Open cdhunt opened 4 years ago
Dang this will be way more advanced than my:
<#
.SYNOPSIS
Initialize the 1Password CLI.
.DESCRIPTION
This sets the necessary environment variable after using their CLI to
interactively login. Combined with
https://github.com/cdhunt/SecretManagement.1Password this provides secrets!
#>
function Initialize-1Password {
$env:OP_SESSION_my = op signin my --raw
}
😂
FYI @cdhunt SecretManagement is getting some incoming changes to support "unlocking" vaults.
$?
and$LASTEXITCODE
don't seem to capture failed command execution.