summaryrefslogtreecommitdiff
path: root/lib/tfa/cli.rb
diff options
context:
space:
mode:
authormo khan <mokhan@users.noreply.github.com>2016-11-18 10:29:33 -0700
committerGitHub <noreply@github.com>2016-11-18 10:29:33 -0700
commit172e3dfb7ff0ebec111a8349daddd50ad86648aa (patch)
tree216abfe1666126bda23cc2b27e5222c4e8f0ec9e /lib/tfa/cli.rb
parent6301ea64a649212838a449e7f11af91f72bd5263 (diff)
parent32938166ecb1d446101f0b312a3ba4635a010bdc (diff)
Merge pull request #6 from mokhan/GH-3v0.0.12
Add a command to remove a secret.
Diffstat (limited to 'lib/tfa/cli.rb')
-rw-r--r--lib/tfa/cli.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tfa/cli.rb b/lib/tfa/cli.rb
index 107f202..03feeeb 100644
--- a/lib/tfa/cli.rb
+++ b/lib/tfa/cli.rb
@@ -12,6 +12,11 @@ module TFA
"Added #{name}"
end
+ desc "destroy NAME", "remove the secret associated with the name"
+ def destroy(name)
+ storage.delete(name)
+ end
+
desc "show NAME", "shows the secret for the given key"
def show(name = nil)
name ? storage.secret_for(name) : storage.all