lib/synvert/cli.rb in synvert-0.0.7 vs lib/synvert/cli.rb in synvert-0.0.8
- old
+ new
@@ -37,12 +37,13 @@
else
eval(File.read(snippet_path))
end
end
Configuration.instance.get('snippet_names').each do |snippet_name|
+ puts "===== #{snippet_name} started ====="
rewriter = Rewriter.call snippet_name
- puts "-------#{snippet_name} todo-------"
- puts rewriter.todo_list
+ puts rewriter.todo_list if rewriter.todo_list
+ puts "===== #{snippet_name} done ====="
end
if :list == command
puts "%-40s %s" % ['name', 'description']
puts "%-40s %s" % ['----', '-----------']