kbsecret 0.0.13 → 0.0.14
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/bin/kbsecret +15 -0
- data/bin/kbsecret-env +6 -1
- data/lib/kbsecret.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19c6fbd96b0cab2ef17da291a74b84219f6404f8
|
|
4
|
+
data.tar.gz: 0b0013aa305294ba08940e0a64e27ddd26317902
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e725eb53fcda8db4275b9f211fa7de2c15f5aaae0790b70b919c3061e8a21a45eeddc8de001c0e290624f765ea7de5aef0d4211adc214ab4177c0979d1a1f51
|
|
7
|
+
data.tar.gz: 273a89be9d31748535034d3bfa8fec13b51167cbd96550657972f9dc7937bc19b0b1a6a828be0f71ddc3e0d9ac80eaecf9d41e380104e75a258258299a06de56
|
data/bin/kbsecret
CHANGED
|
@@ -7,6 +7,7 @@ BUILTIN_CMDS = [
|
|
|
7
7
|
"version",
|
|
8
8
|
"commands",
|
|
9
9
|
"types",
|
|
10
|
+
"conf",
|
|
10
11
|
].freeze
|
|
11
12
|
|
|
12
13
|
EXT_PATHS = ENV["PATH"].split(File::PATH_SEPARATOR).map do |path|
|
|
@@ -123,6 +124,20 @@ def types_help
|
|
|
123
124
|
EOS
|
|
124
125
|
end
|
|
125
126
|
|
|
127
|
+
def conf
|
|
128
|
+
abort("You need to set $EDITOR!") unless ENV["EDITOR"]
|
|
129
|
+
Process.spawn("#{ENV["EDITOR"]} #{KBSecret::Config::CONFIG_FILE}")
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def conf_help
|
|
133
|
+
puts <<~EOS
|
|
134
|
+
Open kbsecret's configuration in $EDITOR, if set.
|
|
135
|
+
|
|
136
|
+
Usage:
|
|
137
|
+
kbsecret conf
|
|
138
|
+
EOS
|
|
139
|
+
end
|
|
140
|
+
|
|
126
141
|
command = normalize(ARGV.shift || "help")
|
|
127
142
|
|
|
128
143
|
if builtin? command
|
data/bin/kbsecret-env
CHANGED
|
@@ -17,6 +17,7 @@ opts = Slop.parse suppress_errors: true do |o|
|
|
|
17
17
|
|
|
18
18
|
o.string "-s", "--session", "the session name", default: :default
|
|
19
19
|
o.bool "-a", "--all", "retrieve all environment records, not just listed ones"
|
|
20
|
+
o.bool "-v", "--value-only", "print only the environment value, not the key"
|
|
20
21
|
|
|
21
22
|
o.on "-h", "--help" do
|
|
22
23
|
puts o
|
|
@@ -51,5 +52,9 @@ else
|
|
|
51
52
|
end
|
|
52
53
|
|
|
53
54
|
env_records.each do |record|
|
|
54
|
-
|
|
55
|
+
if opts.value_only?
|
|
56
|
+
puts record.value
|
|
57
|
+
else
|
|
58
|
+
puts record.to_export
|
|
59
|
+
end
|
|
55
60
|
end
|
data/lib/kbsecret.rb
CHANGED
|
@@ -8,7 +8,7 @@ require_relative "kbsecret/session"
|
|
|
8
8
|
# The primary namespace for kbsecret.
|
|
9
9
|
module KBSecret
|
|
10
10
|
# kbsecret's current version
|
|
11
|
-
VERSION = "0.0.
|
|
11
|
+
VERSION = "0.0.14".freeze
|
|
12
12
|
|
|
13
13
|
# fail very early if the user doesn't have keybase and KBFS running
|
|
14
14
|
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.0.
|
|
4
|
+
version: 0.0.14
|
|
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-04-
|
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: keybase-unofficial
|
|
@@ -69,18 +69,18 @@ dependencies:
|
|
|
69
69
|
description: Manages your passwords, environment, and more via KBFS.
|
|
70
70
|
email: william@tuffbizz.com
|
|
71
71
|
executables:
|
|
72
|
-
- kbsecret-
|
|
73
|
-
- kbsecret
|
|
74
|
-
- kbsecret-new-session
|
|
75
|
-
- kbsecret-new
|
|
76
|
-
- kbsecret-dump-fields
|
|
72
|
+
- kbsecret-pass
|
|
73
|
+
- kbsecret
|
|
77
74
|
- kbsecret-rm
|
|
78
|
-
- kbsecret-list
|
|
79
75
|
- kbsecret-login
|
|
76
|
+
- kbsecret-raw-edit
|
|
80
77
|
- kbsecret-todo
|
|
81
|
-
- kbsecret-
|
|
78
|
+
- kbsecret-new
|
|
79
|
+
- kbsecret-dump-fields
|
|
82
80
|
- kbsecret-env
|
|
83
|
-
- kbsecret
|
|
81
|
+
- kbsecret-new-session
|
|
82
|
+
- kbsecret-list
|
|
83
|
+
- kbsecret-sessions
|
|
84
84
|
extensions: []
|
|
85
85
|
extra_rdoc_files: []
|
|
86
86
|
files:
|