Unified way to handle op, service accounts & connect
package main
import (
"context"
"fmt"
"testing"
"github.com/foomo/onepassword-go"
)
func TestSecret(t *testing.T) {
secret, err := onepassword.Secret(context.TODO(), "your-name", "vault", "item", "field")
if err != nil {
panic(err)
}
fmt.Println(secret)
}
Make a pull request...
Distributed under MIT License, please see license file within the code for more details.