Skip to content

Commit

Permalink
Update docs to use new swagger action
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Mar 8, 2018
1 parent 8136f4c commit 1365047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

0 comments on commit 1365047

Please sign in to comment.