Sha256: 4d86c804daae6a8d3dd8bfbb60e12eb407ef7a88a3becebef11c910043643998
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
module Notes class CLI def initialize(argv) @options = Notes::Options.parse(argv) end # 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 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notes-cli-2.0.1 | lib/notes-cli/cli.rb |
notes-cli-2.0.0 | lib/notes-cli/cli.rb |