2022-03-24 02:59:14 +03:00
|
|
|
# cSpell:ignore Apireview
|
|
|
|
# cSpell:ignore Onboarded
|
2020-09-04 20:53:01 +03:00
|
|
|
$RepoRoot = Resolve-Path "${PSScriptRoot}..\..\..\.."
|
|
|
|
$EngDir = Join-Path $RepoRoot "eng"
|
|
|
|
$EngCommonDir = Join-Path $EngDir "common"
|
|
|
|
$EngCommonScriptsDir = Join-Path $EngCommonDir "scripts"
|
|
|
|
$EngScriptsDir = Join-Path $EngDir "scripts"
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Import required scripts
|
2020-09-04 20:53:01 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir SemVer.ps1)
|
|
|
|
. (Join-Path $EngCommonScriptsDir ChangeLog-Operations.ps1)
|
|
|
|
. (Join-Path $EngCommonScriptsDir Package-Properties.ps1)
|
2020-09-16 20:04:01 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir logging.ps1)
|
2020-10-13 03:14:16 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir Invoke-GitHubAPI.ps1)
|
2020-11-19 08:50:41 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir Invoke-DevOpsAPI.ps1)
|
2020-10-20 00:58:13 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir artifact-metadata-parsing.ps1)
|
2022-03-24 02:59:14 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir "Helpers" git-helpers.ps1)
|
2022-12-21 20:44:10 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir "Helpers" Package-Helpers.ps1)
|
2024-10-17 01:07:06 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir "Helpers" CommandInvocation-Helpers.ps1)
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Setting expected from common languages settings
|
2020-09-04 20:53:01 +03:00
|
|
|
$Language = "Unknown"
|
|
|
|
$PackageRepository = "Unknown"
|
|
|
|
$packagePattern = "Unknown"
|
|
|
|
$MetadataUri = "Unknown"
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Import common language settings
|
2020-09-04 20:53:01 +03:00
|
|
|
$EngScriptsLanguageSettings = Join-path $EngScriptsDir "Language-Settings.ps1"
|
2020-07-29 03:39:30 +03:00
|
|
|
if (Test-Path $EngScriptsLanguageSettings) {
|
|
|
|
. $EngScriptsLanguageSettings
|
|
|
|
}
|
2021-01-22 03:48:11 +03:00
|
|
|
|
2021-03-03 23:24:16 +03:00
|
|
|
if (!(Get-Variable -Name "LanguageShort" -ValueOnly -ErrorAction "Ignore"))
|
2020-09-04 20:53:01 +03:00
|
|
|
{
|
2021-03-03 23:24:16 +03:00
|
|
|
$LanguageShort = $Language
|
2020-09-04 20:53:01 +03:00
|
|
|
}
|
2020-07-29 03:39:30 +03:00
|
|
|
|
2021-02-27 05:46:39 +03:00
|
|
|
if (!(Get-Variable -Name "LanguageDisplayName" -ValueOnly -ErrorAction "Ignore"))
|
2021-01-22 03:48:11 +03:00
|
|
|
{
|
|
|
|
$LanguageDisplayName = $Language
|
|
|
|
}
|
|
|
|
|
2020-07-29 03:39:30 +03:00
|
|
|
# Transformed Functions
|
2023-08-24 00:53:37 +03:00
|
|
|
# Expected to be set in eng/scripts/Language-Settings.ps1
|
2020-07-29 03:39:30 +03:00
|
|
|
$GetPackageInfoFromRepoFn = "Get-${Language}-PackageInfoFromRepo"
|
|
|
|
$GetPackageInfoFromPackageFileFn = "Get-${Language}-PackageInfoFromPackageFile"
|
2020-11-19 08:50:41 +03:00
|
|
|
$PublishGithubIODocsFn = "Publish-${Language}-GithubIODocs"
|
2021-05-27 01:15:31 +03:00
|
|
|
$UpdateDocsMsPackagesFn = "Update-${Language}-DocsMsPackages"
|
2021-06-30 18:43:23 +03:00
|
|
|
$GetDocsMsMetadataForPackageFn = "Get-${Language}-DocsMsMetadataForPackage"
|
|
|
|
$GetDocsMsDevLanguageSpecificPackageInfoFn = "Get-${Language}-DocsMsDevLanguageSpecificPackageInfo"
|
2020-12-18 00:52:15 +03:00
|
|
|
$GetGithubIoDocIndexFn = "Get-${Language}-GithubIoDocIndex"
|
2021-05-27 01:15:31 +03:00
|
|
|
$FindArtifactForApiReviewFn = "Find-${Language}-Artifacts-For-Apireview"
|
2021-08-17 02:29:35 +03:00
|
|
|
$TestProxyTrustCertFn = "Import-Dev-Cert-${Language}"
|
2022-02-18 01:12:19 +03:00
|
|
|
$ValidateDocsMsPackagesFn = "Validate-${Language}-DocMsPackages"
|
|
|
|
$GetOnboardedDocsMsPackagesFn = "Get-${Language}-OnboardedDocsMsPackages"
|
2022-06-14 18:36:10 +03:00
|
|
|
$GetOnboardedDocsMsPackagesForMonikerFn = "Get-${Language}-OnboardedDocsMsPackagesForMoniker"
|
2022-02-18 01:12:19 +03:00
|
|
|
$GetDocsMsTocDataFn = "Get-${Language}-DocsMsTocData"
|
|
|
|
$GetDocsMsTocChildrenForManagementPackagesFn = "Get-${Language}-DocsMsTocChildrenForManagementPackages"
|
|
|
|
$UpdateDocsMsTocFn = "Get-${Language}-UpdatedDocsMsToc"
|
2022-06-24 21:23:58 +03:00
|
|
|
$GetPackageLevelReadmeFn = "Get-${Language}-PackageLevelReadme"
|
2022-07-13 01:23:37 +03:00
|
|
|
$GetRepositoryLinkFn = "Get-${Language}-RepositoryLink"
|
2023-01-30 23:45:03 +03:00
|
|
|
$GetEmitterAdditionalOptionsFn = "Get-${Language}-EmitterAdditionalOptions"
|
|
|
|
$GetEmitterNameFn = "Get-${Language}-EmitterName"
|
2023-09-25 22:35:21 +03:00
|
|
|
$GetDirectoriesForGenerationFn = "Get-${Language}-DirectoriesForGeneration"
|
|
|
|
$UpdateGeneratedSdksFn = "Update-${Language}-GeneratedSdks"
|
2024-08-29 04:11:08 +03:00
|
|
|
$IsApiviewStatusCheckRequiredFn = "Get-${Language}-ApiviewStatusCheckRequirement"
|
|
|
|
$AdditionalValidationPackagesFromPackageSetFn = "Get-${Language}-AdditionalValidationPackagesFromPackageSet"
|
2023-08-24 00:53:37 +03:00
|
|
|
|
|
|
|
# Expected to be set in eng/scripts/docs/Docs-Onboarding.ps1
|
|
|
|
$SetDocsPackageOnboarding = "Set-${Language}-DocsPackageOnboarding"
|
|
|
|
$GetDocsPackagesAlreadyOnboarded = "Get-${Language}-DocsPackagesAlreadyOnboarded"
|
|
|
|
$GetPackageIdentity = "Get-${Language}-PackageIdentity"
|
2023-09-13 23:29:07 +03:00
|
|
|
$GetPackageIdentityFromCsvMetadata = "Get-${Language}-PackageIdentityFromCsvMetadata"
|