From a798359dc6f7f0ff3f43b89ac68810f165c7a28b Mon Sep 17 00:00:00 2001 From: Robin Skoglund Date: Mon, 30 Jan 2017 10:38:58 +0100 Subject: [PATCH] Convert to json instead of html --- scripts/{b-raml2html => b-raml2json} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename scripts/{b-raml2html => b-raml2json} (69%) diff --git a/scripts/b-raml2html b/scripts/b-raml2json similarity index 69% rename from scripts/b-raml2html rename to scripts/b-raml2json index 7a5255d3c..5427387eb 100755 --- a/scripts/b-raml2html +++ b/scripts/b-raml2json @@ -6,13 +6,12 @@ var path = require('path'); var args = process.argv.slice(2); -if (args.length < 2) { - console.log('Must provide input RAML file and output HTML file'); +if (args.length < 1) { + console.log('Must provide input RAML file'); process.exit(1); } var raml_file = path.resolve(args[0]); -var html_file = path.resolve(args[1]); var api = raml.loadApiSync(raml_file); console.log(JSON.stringify(api.toJSON(), null, 2));