Sha256: c3c91c3b48bde90d0fa83c4f29b1ceb59ca07d6527c5ae39592aa47667c4b96c

Contents?: true

Size: 228 Bytes

Versions: 5

Compression:

Stored size: 228 Bytes

Contents

module TFA
  class ShowCommand
    def initialize(storage)
      @storage = storage
    end

    def run(arguments)
      return @storage.secret_for(arguments.last) if arguments.any?
      @storage.all_secrets
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tfa-0.0.8 lib/tfa/show_command.rb
tfa-0.0.7 lib/tfa/show_command.rb
tfa-0.0.6 lib/tfa/show_command.rb
tfa-0.0.5 lib/tfa/show_command.rb
tfa-0.0.4 lib/tfa/show_command.rb