Class: ItsyBtc::Commands::DecryptCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/itsy-btc/commands/decrypt_command.rb

Instance Attribute Summary

Attributes inherited from Command

#wallet

Instance Method Summary collapse

Methods inherited from Command

args, name, summary

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/itsy-btc/commands/decrypt_command.rb', line 7

def run
  unless @wallet
    puts "No wallet found! Use `itsy init` to create one."
    exit
  end

  @wallet.entries_with_keys.each do |entry|
    puts "addr: #{entry.address}"
    puts "key: #{entry.key}"
    puts "comment: #{entry.comment}"
    puts
  end
end