Skip to content

Commit

Permalink
[mock] Style the response URLs a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Aug 3, 2016
1 parent d852e54 commit 3159265
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ exports.run = function(config, info) {
if(samples.length) {
console.log("Here's some example URLs you can try:");
console.log("");
_.each(samples, function(s) {
console.log((" ["+s[0] +"] " + data.url + (info.swagger.basePath || "") + s[1]).grey);
var type = (t) => (" "+(t.toUpperCase())+" ").substr(0, 7).grey;
_.each(_.sampleSize(samples, 4), function(s) {
console.log(type(s[0]) + data.url + (info.swagger.basePath || "") + s[1]);
});
}
});
Expand Down

0 comments on commit 3159265

Please sign in to comment.