Sha256: 39ace8e78004689123c0a1fd9fc5a3250f6f92c57d01c7cf2172f57beddede6f
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
GLI.desc 'Display all project TODO items' command :todo do |c| c.action do |global_options, options, args| Glyph['system.quiet'] = true Glyph.run "generate:document" Glyph['system.quiet'] = false unless Glyph.document.todos.blank? puts "=====================================" puts "#{Glyph['document.title']} - TODOs" puts "=====================================" # Group items if Glyph.document.todos.respond_to? :group_by then Glyph.document.todos.group_by{|e| e[:source]}.each_pair do |k, v| puts puts "=== #{k} " v.each do |i| puts " * #{i[:text]}" end end else Glyph.document.todos.each do |t| Glyph.info t end end else Glyph.info "Nothing left to do." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
glyph-0.4.2 | lib/glyph/commands/todo.rb |
glyph-0.4.1 | lib/glyph/commands/todo.rb |
glyph-0.4.0 | lib/glyph/commands/todo.rb |