Skip to content

Commit

Permalink
Add some color!
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Mar 22, 2017
1 parent 57fea15 commit 463c154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var cardinal = require('cardinal');

exports.swagger = true;
exports.login = false;
exports.desc = "Output your Swagger file";
exports.category = "utility";

exports.run = function(config, info) {
console.log(JSON.stringify(info.swagger, undefined, 2));
console.log(cardinal.highlight(JSON.stringify(info.swagger, undefined, 2)));
process.exit();
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"main": "index.js",
"dependencies": {
"base-store": "^0.4.4",
"cardinal": "^1.0.0",
"colors": "^1.1.2",
"figures": "^1.7.0",
"glob": "^7.1.0",
Expand Down

0 comments on commit 463c154

Please sign in to comment.