From 5af197915f97a1ccc6f9186537ba4309ea274cb6 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Wed, 7 Jul 2021 12:49:02 +0800 Subject: [PATCH] change the template for readme.go.md for openapihub to track 2 style (#15065) --- documentation/samplefiles/readme.go.md | 27 +++++------------------ documentation/samplefiles/samplereadme.md | 2 +- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/documentation/samplefiles/readme.go.md b/documentation/samplefiles/readme.go.md index 2bef6f16af36..f755026a6888 100644 --- a/documentation/samplefiles/readme.go.md +++ b/documentation/samplefiles/readme.go.md @@ -2,25 +2,10 @@ These settings apply only when `--go` is specified on the command line. -```yaml $(go) -go: - license-header: MICROSOFT_MIT_NO_VERSION - namespace: [[ServiceName]] - clear-output-folder: true -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-[[Version]][[-ReleaseState]] -``` - -### Tag: package-[[Version]][[-ReleaseState]] and go - -These settings apply only when `--tag=package-[[Version]][[-ReleaseState]] --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -```yaml $(tag) == 'package-[[Version]][[-ReleaseState]]' && $(go) -output-folder: $(go-sdk-folder)/services[[/ReleaseState]]/$(namespace)/mgmt/[[Version]]/$(namespace) +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/[[ServiceName]]/arm[[ServiceName]] +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) ``` diff --git a/documentation/samplefiles/samplereadme.md b/documentation/samplefiles/samplereadme.md index bce1228cf02e..87547f82a67b 100644 --- a/documentation/samplefiles/samplereadme.md +++ b/documentation/samplefiles/samplereadme.md @@ -51,7 +51,7 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - - repo: azure-sdk-for-go + - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-js - repo: azure-resource-manager-schemas - repo: azure-cli-extensions