class TimesheetReader::CLI

CLI class

Public Instance Methods

run() click to toggle source
# File lib/timesheet_reader/cli.rb, line 6
def run
  input = ARGV
  timesheet_info = TimesheetReader::Core.new(input).run

  TimesheetReader::Formatter.new.report(
    timesheet_info[:timesheets],
    timesheet_info[:total_hours],
    timesheet_info[:total_minutes]
  )
end