Skip to content

Instantly share code, notes, and snippets.

@yuta-imai
Created August 13, 2015 11:51
Show Gist options
  • Save yuta-imai/564a2f007e2960cb6d04 to your computer and use it in GitHub Desktop.
Save yuta-imai/564a2f007e2960cb6d04 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var files = process.argv;
files.shift();
files.shift();
var operations = [];
files.forEach(function(filePath){
fs.readFile(filePath,'utf8',function(err,body){
var data = JSON.parse(body);
if(data.operations){
Object.keys(data.operations).forEach(function(operationName){
console.log(data.metadata.serviceFullName + ', ' + operationName);
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment