Method: Notes::Tasks#for_files

Defined in:
lib/notes-cli/tasks.rb

#for_files(files, options) ⇒ Object

Compute all tasks for a set of files and flags

files - Array of String filenames options - Hash of options

:flags - Array of String flags to match against

Returns Array



110
111
112
113
114
115
116
117
118
119
# File 'lib/notes-cli/tasks.rb', line 110

def for_files(files, options)
  flags  = options[:flags]
  result = []
  files.each do |filename|
    tasks = Notes::Tasks.for_file(filename, flags)
    result += tasks
  end

  result
end