diff --git a/scripts/typespec_refresh_sdk/README.md b/scripts/typespec_refresh_sdk/README.md deleted file mode 100644 index cb7ab550bcc8..000000000000 --- a/scripts/typespec_refresh_sdk/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Overview - -The script is to refresh SDK code - -## Prerequisites - -1. Install [Powershell 7+](https://learn.microsoft.com/shows/it-ops-talk/how-to-install-powershell-7) -2. Install [Python 3.7+](https://www.python.org/downloads/release/python-370/) -3. Install [Nodejs](https://nodejs.org/en/download/) - -## Usage - -Step into root folder of this repo and run cmd with sdk folder: -```powershell -D:\azure-sdk-for-python> python .\scripts\typespec_refresh_sdk\main.py .\sdk\contosowidgetmanager\azure-contosowidgetmanager -``` \ No newline at end of file diff --git a/scripts/typespec_refresh_sdk/main.py b/scripts/typespec_refresh_sdk/main.py deleted file mode 100644 index 0d930bd65fe0..000000000000 --- a/scripts/typespec_refresh_sdk/main.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import sys -from pathlib import Path -from subprocess import check_call - - -def main(sdk_folder: str): - # install package.json - script = Path("eng/common/scripts/TypeSpec-Project-Sync.ps1") - check_call(f"pwsh {script} {Path(sdk_folder)}", shell=True) - - # generate SDK - cmd = Path("eng/common/scripts/TypeSpec-Project-Generate.ps1") - check_call(f"pwsh {cmd} {Path(sdk_folder)}", shell=True) - -if __name__ == '__main__': - if len(sys.argv[1:]) != 1: - print("Please input sdk folder like: sdk/datadog/azure-mgmt-datadog") - else: - main(sys.argv[1])