summaryrefslogtreecommitdiff
path: root/lib/tfa
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-07-25 14:24:07 -0600
committermo khan <mo@mokhan.ca>2014-07-25 14:24:07 -0600
commit5d26288b2c9cfd5ce6cb92fd0363621fba87d6a3 (patch)
tree6a8d4bb6b6aa8b54a0079046f83340dce0ada9af /lib/tfa
parentb165d71bbdc267690331d989b54f237ea9defc1e (diff)
add a usage command.v0.0.1
Diffstat (limited to 'lib/tfa')
-rw-r--r--lib/tfa/console.rb2
-rw-r--r--lib/tfa/usage_command.rb15
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/tfa/console.rb b/lib/tfa/console.rb
index 3d42985..f0bf3eb 100644
--- a/lib/tfa/console.rb
+++ b/lib/tfa/console.rb
@@ -19,6 +19,8 @@ module TFA
ShowCommand.new(@storage)
when "totp"
TotpCommand.new(@storage)
+ else
+ UsageCommand.new(@storage)
end
end
end
diff --git a/lib/tfa/usage_command.rb b/lib/tfa/usage_command.rb
new file mode 100644
index 0000000..3dd5abd
--- /dev/null
+++ b/lib/tfa/usage_command.rb
@@ -0,0 +1,15 @@
+module TFA
+ class UsageCommand
+ def initialize(storage)
+ end
+
+ def run(arguments)
+ <<-MESSAGE
+Try:
+ - tfa add develoment <secret>
+ - tfa show development
+ - tfa totp development
+ MESSAGE
+ end
+ end
+end