Azure / Azure/oav

[extract-examples] Cli command for extracting examples does not work on Windows / Bash on Windows

Open
#126 1 comment 0 reactions 0 assignees View on GitHub
bug customer-request P3 Swagger examples
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

```
bash-3.1$ oav extract-xmsexamples ./azure-rest-api-specs/arm-network/2016-12-01/swagger/network.json ./azure-sdk-for-net
/src/SDKs/Network/Network.Tests/SessionRecords
c:\Users\vissha\AppData\Roaming\npm\node_modules\oav\cli.js extract-xmsexamples

Options:
--version Show version number [boolean]
-l, --logLevel Set the logging level for console.
[choices: "off", "json", "error", "warn", "info", "verbose", "debug", "silly"]
[default: "warn"]
-f, --logFilepath Set the log file path. It must be an absolute filepath.
By default the logs will stored in a timestamp based
log file at "C:\Users\vissha\oav_output".
-d, --outDir The output directory where the x-ms-examples files need
to be stored. If not provided then the output will be
stored in a folder name "output" adjacent to the
working directory. [string]
-m, --matchApiVersion Only generate examples if api-version matches.
[boolean] [default: true]
-h, --help Show help [boolean]

Cannot find module './azure-rest-api-specs/arm-network/2016-12-01/swagger/network.json'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.