azure-sdk-for-cpp/eng/common/scripts/Verify-Readme.ps1
Azure SDK Bot 11e625596f
Sync eng/common directory with azure-sdk-tools for PR 2417 (#3176)
* Add logic for retrieving package infro from DevOps feed

* Add template for docwarden

* Remove Invoke-DevOpsAPI changes

* Update verify readme logic

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-12-09 17:37:19 -08:00

25 lines
478 B
PowerShell

# Wrapper Script for Readme Verification
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string]$DocWardenVersion,
[Parameter(Mandatory = $true)]
[string]$ScanPath,
[string]$RepoRoot,
[Parameter(Mandatory = $true)]
[string]$SettingsPath
)
pip install setuptools wheel --quiet
pip install doc-warden==$DocWardenVersion --quiet
if ($RepoRoot)
{
ward scan -d $ScanPath -u $RepoRoot -c $SettingsPath
}
else
{
ward scan -d $ScanPath -c $SettingsPath
}