openv

Crates.ioopenv
lib.rsopenv
version0.1.0
sourcesrc
created_at2021-01-02 07:11:52.659712
updated_at2021-01-02 07:11:52.659712
descriptionA tool that uses the credentials stored in 1password as an environment variable.
homepagehttps://github.com/mrtc0/openv
repository
max_upload_size
id330447
size41,083
mrtc0 (mrtc0)

documentation

README

openv

A tool that uses the credentials stored in 1password as an environment variable.

Requirements

Getting Started

$ eval $(op signin <sign_in_address>)
$ op create vault myenv

$ openv create myenv SECRET_TOKEN
myenv.SECRET_TOKEN> this-is-secret

$ openv list myenv
SECRET_TOKEN

$ env $(openv myenv get) sh -c 'echo $SECRET_TOKEN'
this-is-secret

$ env $(openv myenv get -n SECRET_TOKEN:MY_ENV) sh -c 'echo $MY_ENV'
this-is-secret

Install

On macOS via Homebrew

TBD

From binaries

Check out the release page for prebuilt versions of openv for many architectures.

From source

TBD

Development

# Run tests
$ cargo test

# Build
$ cargo build --bins

# Install
$ cargo install --path . --locked
Commit count: 0

cargo fmt