summaryrefslogtreecommitdiff
path: root/lib/tfa/cli.rb
diff options
context:
space:
mode:
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