cdhunt / SecretManagement.1Password

This is a SecretManagement extension for 1Password.
MIT License
21 stars 13 forks source link

Create an Invoke-OP cmdlet #5

Open cdhunt opened 3 years ago

cdhunt commented 3 years ago
andyleejordan commented 3 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
}

😂

andyleejordan commented 3 years ago

FYI @cdhunt SecretManagement is getting some incoming changes to support "unlocking" vaults.