Class: Cashflow::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/cashflow/cli.rb

Instance Method Summary collapse

Instance Method Details

#load(ofx_file_path) ⇒ Object



14
15
16
17
18
# File 'lib/cashflow/cli.rb', line 14

def load(ofx_file_path)
   = OFX(ofx_file_path).
  store_ofx_transactions(.transactions, .id)
  say("Successfully loaded the transactions for #{.id}", :green)
end

#reportObject



23
24
25
# File 'lib/cashflow/cli.rb', line 23

def report
  Report.new(options).print(self)
end

#versionObject



9
10
11
# File 'lib/cashflow/cli.rb', line 9

def version
  say("Cashflow v#{Cashflow::VERSION}", :green)
end