oav
oav copied to clipboard
[extract-examples] Cli command for extracting examples does not work on Windows / Bash on Windows
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
<spec-path> <recordings>
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'
https://github.com/Azure/oav/pull/127