Project

opr21

0.0
No release in over 3 years
get your items from 1password
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.1, >= 2.1.0
 Project Readme

deprecated

the op cli changed totaly, so this does not work any more.

yet another onepassword wrapper in 2021

get your items from 1password in ruby.

synopsis

require "opr21"

unless ENV.has_key?"ONEPASSWORD"
    puts "env-var ONEPASSWORD is missing"
else
    op = Opr21.new(ENV["ONEPASSWORD"], {:domain => "your-domain", :email => "your-email", :secret => "your-secret"})
    opv = op.getItem "your-item-title"
    puts opv["website"]
end

with the fuction getItemList(titleRegex, vault) you can search for your entry. it returns an array of the entry titles.

installation

just install the gem:

gem install opr21

external tools / requirements

Download the op commandlinetool for 1password.