require "remindice/version"
require "thor"

module Remindice
  TASK_FILENAME = File.expand_path("~/.reamindice_tasks")

  class << self
    def tasks
      @@tasks.clone
    end

    def save
      file = File.open(TASK_FILENAME, "w")
      tasks.each do |i|
        file.puts i
      end
    end
  end
  class Commands < Thor
    @@tasks = if File.exists?(Remindice::TASK_FILENAME); File.readlines(Remindice::TASK_FILENAME) else [] end
  end
end

require "remindice/version"
require "thor"

module Remindice
  TASK_FILENAME = File.expand_path("~/.reamindice_tasks")

  class << self
    def tasks
      @@tasks.clone
    end

    def save(tasks)
      file = File.open(TASK_FILENAME, "w")
      tasks.each do |i|
        file.puts i
      end
    end
  end
  class Commands < Thor
    @@tasks = if File.exists?(Remindice::TASK_FILENAME); File.readlines(Remindice::TASK_FILENAME) else [] end
  end
end

Add an argument to Reminisce::save
Add an argument to Reminisce::save
