Skip to content

Commit 463c154

Browse files
committed
Add some color!
1 parent 57fea15 commit 463c154

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/generate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
var cardinal = require('cardinal');
2+
13
exports.swagger = true;
24
exports.login = false;
35
exports.desc = "Output your Swagger file";
46
exports.category = "utility";
57

68
exports.run = function(config, info) {
7-
console.log(JSON.stringify(info.swagger, undefined, 2));
9+
console.log(cardinal.highlight(JSON.stringify(info.swagger, undefined, 2)));
810
process.exit();
911
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"main": "index.js",
2929
"dependencies": {
3030
"base-store": "^0.4.4",
31+
"cardinal": "^1.0.0",
3132
"colors": "^1.1.2",
3233
"figures": "^1.7.0",
3334
"glob": "^7.1.0",

0 commit comments

Comments
 (0)