Created
August 13, 2015 11:51
-
-
Save yuta-imai/564a2f007e2960cb6d04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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