Skip to content

Commit

Permalink
small formatting bug in pretty list, green successful output
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed Dec 18, 2013
1 parent 6f30106 commit b01666b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/sprout
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (cmd.sync) {
p = cmd({ template: argv._[0], path: argv._[1], options: opts_only(argv) }); break;
}

p.done(console.log.bind(console), function(err){
p.done(function(r){ console.log(r.green) }, function(err){
console.error("ERROR: ".red + err);
process.exit(64); // command line usage error
});
Expand Down
6 changes: 3 additions & 3 deletions lib/api/list.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class List extends Base
if @pretty
plist = "\n"
plist += "Templates\n".bold.blue
plist += "---------\n\n".bold.blue
plist += "---------\n".bold.blue
if list.length
plist += "- #{item}" for item in list
plist += "\n- #{item}" for item in list
else
plist += 'no templates present'
plist += '\nno templates present'
plist += "\n"
return plist
return list
Expand Down

0 comments on commit b01666b

Please sign in to comment.