Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jondruse/password_vault
base: 73ce18803c
...
head fork: jondruse/password_vault
compare: 9e6ef48628
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 16 additions and 11 deletions.
  1. +6 −11 README.md
  2. +10 −0 bin/pvault
View
17 README.md
@@ -1,24 +1,19 @@
# PasswordVault
-TODO: Write a gem description
+Really simple CLI for storing passwords securely.
## Installation
-Add this line to your application's Gemfile:
-
- gem 'password_vault'
-
-And then execute:
+ $ gem install password_vault
- $ bundle
+## Usage
-Or install it yourself as:
+Run pvault to interact with your Vault
- $ gem install password_vault
+Here's an example:
-## Usage
+![Example](https://www.evernote.com/shard/s9/sh/2ae7fdfc-1dba-40da-a265-c002acbcb299/82e34f321ea2740330831af5344fc8df/res/10639cfa-b442-4125-a521-246eb8a1baf9/skitch.png)
-TODO: Write usage instructions here
## Contributing
View
10 bin/pvault
@@ -74,6 +74,10 @@ command :main do |c|
when "copy"
if input.size == 2
p = vault.get_password(input.last)
+ if p.nil?
+ puts "couldn't find password with name #{input.last}"
+ redo
+ end
Clipboard.copy(p.password)
puts "password for #{p.name} copied to your clipboard"
else
@@ -90,6 +94,12 @@ command :main do |c|
when "update"
if input.size == 2
p = vault.get_password(input.last)
+
+ if p.nil?
+ puts "couldn't find password with name #{input.last}"
+ redo
+ end
+
p.name = ask("Name: ")
p.password = ask("Password: ") { |q| q.echo = false }
p.username = ask("Username: ")

No commit comments for this range

Something went wrong with that request. Please try again.