Method: ROTP::CLI#output
- Defined in:
- lib/rotp/cli.rb
#output ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/rotp/cli.rb', line 28 def output return .warnings if .warnings return errors if errors return arguments.to_s if .mode == :help if .mode == :time ROTP::TOTP.new(.secret).now elsif .mode == :hmac ROTP::HOTP.new(.secret).at .counter else fail NotImplementedError end end |