From 136504771d9a57aa37cbbe8076f9523828e24c10 Mon Sep 17 00:00:00 2001 From: Dom Harrington Date: Thu, 8 Mar 2018 11:49:17 -0800 Subject: [PATCH] Update docs to use new `swagger` action --- README.md | 4 ++-- lib/start.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 445c8d0cc..c03b1462c 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ npm install rdme ### Uploading a new Swagger file to ReadMe ```sh -rdme {path-to-swagger.json} --token={api-key} +rdme swagger {path-to-swagger.json} --token={api-key} ``` ### Editing an existing Swagger file ```sh -rdme {path-to-swagger.json} --token={api-key}-{existing-id} +rdme swagger {path-to-swagger.json} --token={api-key}-{existing-id} ``` ## Future diff --git a/lib/start.js b/lib/start.js index be1cd1b6a..888917955 100644 --- a/lib/start.js +++ b/lib/start.js @@ -7,7 +7,7 @@ exports.weight = 2; exports.run = function(config, info) { console.log('Welcome to the OpenAPI/Swagger uploader for ReadMe!'); console.log(''); - console.log('Have a Swagger file? ' + `${config.cli} swagger.json --token=[token]`.yellow); + console.log('Have a Swagger file? ' + `${config.cli} swagger swagger.json --token=[token]`.yellow); console.log('Need a Swagger file? ' + `${config.cli} init`.yellow); process.exit(); };