class Notes::CLI
Public Class Methods
new(argv)
click to toggle source
# File lib/notes-cli/cli.rb, line 4 def initialize(argv) @options = Notes::Options.parse(argv) end
Public Instance Methods
find_all()
click to toggle source
Read and parse all files as specified in the options Prints filenames along with all tasks found per file Only outputs to console; returns nothing
# File lib/notes-cli/cli.rb, line 11 def find_all task_map = Notes::Tasks.all(@options).group_by(&:filename) task_map.each do |filename, tasks| puts "#{filename}:" tasks.each { |task| puts ' ' + task.to_s } puts '' end end