kbsecret 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/bin/kbsecret-new +7 -8
- data/lib/kbsecret.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3c9a6605fc086f13e96df9f7188a402af8d09b5
|
|
4
|
+
data.tar.gz: ba515398d3b5f2aa574a2b496544424ebca7b6f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faeeb22bd70f5b77a397fdd0f1b4a4e7d47f987307ecdf183a9d1b625ee4b4da49d4e96388a621bb348e7c734ddec6a646adb81fa9575a0f21976db5447fc13c
|
|
7
|
+
data.tar.gz: a5fde2160a8f8661cc2f9418bb4e136f6001f2db0e1fa96f27b100d6d4a56c6b79026d485bce533b228a7846250fe72e58b10102a5b96073ac97c29752f97e9d
|
data/README.md
CHANGED
data/bin/kbsecret-new
CHANGED
|
@@ -13,19 +13,18 @@ opts = KBSecret::CLI.slop do |o|
|
|
|
13
13
|
Create a new secret record.
|
|
14
14
|
|
|
15
15
|
Usage:
|
|
16
|
-
kbsecret new [
|
|
17
|
-
kbsecret new [
|
|
16
|
+
kbsecret new [options] <type> <label>
|
|
17
|
+
kbsecret new [options] --args <type> <label> <fields>
|
|
18
18
|
|
|
19
19
|
Examples:
|
|
20
|
-
kbsecret new login gmail
|
|
21
|
-
kbsecret new environment
|
|
22
|
-
kbsecret new --interactive login netflix
|
|
20
|
+
kbsecret new login gmail
|
|
21
|
+
kbsecret new environment foo-api
|
|
23
22
|
EOS
|
|
24
23
|
|
|
25
24
|
o.string "-s", "--session", "the session name", default: :default
|
|
26
25
|
o.bool "-f", "--force", "force creation (ignore overwrites, etc.)"
|
|
27
|
-
o.bool "-
|
|
28
|
-
o.bool "-e", "--echo", "echo input to tty (only affects
|
|
26
|
+
o.bool "-a", "--args", "use trailing arguments as fields, even with a tty"
|
|
27
|
+
o.bool "-e", "--echo", "echo input to tty (only affects interactive input)"
|
|
29
28
|
end
|
|
30
29
|
|
|
31
30
|
session = KBSecret::CLI.ensure_session opts[:session]
|
|
@@ -49,7 +48,7 @@ end
|
|
|
49
48
|
|
|
50
49
|
fields = []
|
|
51
50
|
|
|
52
|
-
if opts.
|
|
51
|
+
if $stdin.tty? && !opts.args?
|
|
53
52
|
prompt = TTY::Prompt.new
|
|
54
53
|
klass = KBSecret::Record.class_for(resolved_type)
|
|
55
54
|
klass.data_fields.each do |field|
|
data/lib/kbsecret.rb
CHANGED
|
@@ -11,7 +11,7 @@ require_relative "kbsecret/cli"
|
|
|
11
11
|
# The primary namespace for kbsecret.
|
|
12
12
|
module KBSecret
|
|
13
13
|
# kbsecret's current version
|
|
14
|
-
VERSION = "0.4.
|
|
14
|
+
VERSION = "0.4.1"
|
|
15
15
|
|
|
16
16
|
# fail very early if the user doesn't have keybase and KBFS running
|
|
17
17
|
raise Keybase::KeybaseNotRunningError unless Keybase.running?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kbsecret
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Woodruff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: keybase-unofficial
|
|
@@ -83,20 +83,20 @@ dependencies:
|
|
|
83
83
|
description: Manages your passwords, environment, and more via KBFS.
|
|
84
84
|
email: william@tuffbizz.com
|
|
85
85
|
executables:
|
|
86
|
-
- kbsecret-
|
|
87
|
-
- kbsecret
|
|
88
|
-
- kbsecret-stash-file
|
|
89
|
-
- kbsecret-new-session
|
|
90
|
-
- kbsecret-new
|
|
91
|
-
- kbsecret-dump-fields
|
|
86
|
+
- kbsecret-pass
|
|
87
|
+
- kbsecret
|
|
92
88
|
- kbsecret-rm
|
|
93
|
-
- kbsecret-list
|
|
94
89
|
- kbsecret-login
|
|
90
|
+
- kbsecret-raw-edit
|
|
95
91
|
- kbsecret-todo
|
|
96
|
-
- kbsecret-
|
|
97
|
-
- kbsecret-
|
|
92
|
+
- kbsecret-new
|
|
93
|
+
- kbsecret-dump-fields
|
|
94
|
+
- kbsecret-stash-file
|
|
98
95
|
- kbsecret-rm-session
|
|
99
|
-
- kbsecret
|
|
96
|
+
- kbsecret-env
|
|
97
|
+
- kbsecret-new-session
|
|
98
|
+
- kbsecret-list
|
|
99
|
+
- kbsecret-sessions
|
|
100
100
|
extensions: []
|
|
101
101
|
extra_rdoc_files: []
|
|
102
102
|
files:
|