Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
amarzavery committed Oct 21, 2017
1 parent 6b8b0c2 commit 8c3b2fc
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 @@ -13,9 +13,9 @@ autorest --typescript --output-folder=<path-to-the-output-folder(usually upto li
```
autorest --typescript --output-folder=<path-to-the-output-folder(usually upto lib or src folder of your project)> --license-header=MICROSOFT_MIT_NO_VERSION <path-to-readme.md> -package-name=<your-package-name> --package-version<your-package-version>
```
- If you want to generate metadata files (package.json, .npmignore, webpack.config.js, tsconfig.json), then provide `--generate-metadata=true`:
- If you want to generate metadata files **__(package.json, .npmignore, webpack.config.js, tsconfig.json, README.md(with a sample))__**, then provide `--generate-metadata=true`:

**NOTE: This will generate all the _metadata_ files one level above the output-folder.**
**NOTE: This will generate all the __metadata__ files one level above the output-folder.**
```
autorest --typescript --output-folder=<path-to-the-output-folder(usually upto lib or src folder of your project)> --license-header=MICROSOFT_MIT_NO_VERSION --input-file=<path-to-swagger-spec> --package-name=<your-package-name> --package-version<your-package-version> --generate-metadata=true
```
Expand Down
2 changes: 1 addition & 1 deletion src/azure/Templates/AzureReadmeTemplate.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { @(Model.Name), @(Model.ClientPrefix)Models, @(Model.ClientPrefix)Mapper
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
@EmptyLine
msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new @(Model.Name)(creds, undefined, subscriptionId);
const client = new @(Model.Name)(creds, subscriptionId);
@(Model.GenerateSampleMethod())
}).catch((err) => {
console.log('An error ocurred:');
Expand Down

0 comments on commit 8c3b2fc

Please sign in to comment.