We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fea15 commit 463c154Copy full SHA for 463c154
lib/generate.js
@@ -1,9 +1,11 @@
1
+var cardinal = require('cardinal');
2
+
3
exports.swagger = true;
4
exports.login = false;
5
exports.desc = "Output your Swagger file";
6
exports.category = "utility";
7
8
exports.run = function(config, info) {
- console.log(JSON.stringify(info.swagger, undefined, 2));
9
+ console.log(cardinal.highlight(JSON.stringify(info.swagger, undefined, 2)));
10
process.exit();
11
};
package.json
@@ -28,6 +28,7 @@
28
"main": "index.js",
29
"dependencies": {
30
"base-store": "^0.4.4",
31
+ "cardinal": "^1.0.0",
32
"colors": "^1.1.2",
33
"figures": "^1.7.0",
34
"glob": "^7.1.0",
0 commit comments