From be30de4619bc3c9b8e03e313d1b04f2094877746 Mon Sep 17 00:00:00 2001 From: Michael Yanni Date: Mon, 27 Apr 2020 16:11:36 -0700 Subject: [PATCH] Fix casing. --- eng/Generate.ps1 | 10 +++++----- eng/Generation.psm1 | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/eng/Generate.ps1 b/eng/Generate.ps1 index 0b5b9cd5..0e84d8f9 100644 --- a/eng/Generate.ps1 +++ b/eng/Generate.ps1 @@ -11,7 +11,7 @@ $repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..') $swaggerDefinitions = @{}; # Test server test configuration -$autorestPluginProject = (Get-AutorestProject) +$autoRestPluginProject = (Get-AutoRestProject) $testServerDirectory = Join-Path $repoRoot 'test' 'TestServerProjects' $sharedSource = Join-Path $repoRoot 'src' 'assets' $configurationPath = Join-Path $repoRoot 'readme.md' @@ -133,7 +133,7 @@ if (!($Exclude -contains "SmokeTests")) if ($updateLaunchSettings) { - $launchSettings = Join-Path $autorestPluginProject 'Properties' 'launchSettings.json' + $launchSettings = Join-Path $autoRestPluginProject 'Properties' 'launchSettings.json' $settings = @{ 'profiles' = [ordered]@{} }; @@ -156,12 +156,12 @@ if ($updateLaunchSettings) if ($reset -or $env:TF_BUILD) { - Autorest-Reset; + AutoRest-Reset; } if (!$noBuild) { - Invoke "dotnet build $autorestPluginProject" + Invoke "dotnet build $autoRestPluginProject" } $keys = $swaggerDefinitions.Keys | Sort-Object; @@ -181,6 +181,6 @@ if (![string]::IsNullOrWhiteSpace($filter)) $keys | %{ $swaggerDefinitions[$_] } | ForEach-Object -Parallel { Import-Module "$using:PSScriptRoot\Generation.psm1" -DisableNameChecking; - Invoke-Autorest $_.output $_.projectName $_.arguments $using:sharedSource $using:fast $using:clean; + Invoke-AutoRest $_.output $_.projectName $_.arguments $using:sharedSource $using:fast $using:clean; } -ThrottleLimit $parallel diff --git a/eng/Generation.psm1 b/eng/Generation.psm1 index b56560e6..895b23e0 100644 --- a/eng/Generation.psm1 +++ b/eng/Generation.psm1 @@ -1,6 +1,6 @@ $repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..') -$autorestBinary = Join-Path $repoRoot 'node_modules' '.bin' 'autorest-beta' -$AutorestPluginProject = Resolve-Path (Join-Path $repoRoot 'src' 'AutoRest.CSharp.V3') +$autoRestBinary = Join-Path $repoRoot 'node_modules' '.bin' 'autorest-beta' +$AutoRestPluginProject = Resolve-Path (Join-Path $repoRoot 'src' 'AutoRest.CSharp.V3') function Invoke($command) { @@ -22,15 +22,15 @@ function Invoke($command) } } -function Invoke-Autorest($baseOutput, $projectName, $autoRestArguments, $sharedSource, $fast, $clean) +function Invoke-AutoRest($baseOutput, $projectName, $autoRestArguments, $sharedSource, $fast, $clean) { $outputPath = Join-Path $baseOutput $projectName $namespace = $projectName.Replace('-', '_') - $command = "$script:autorestBinary $autoRestArguments --namespace=$namespace --output-folder=$outputPath" + $command = "$script:autoRestBinary $autoRestArguments --namespace=$namespace --output-folder=$outputPath" if ($fast) { - $command = "dotnet run --project $script:AutorestPluginProject --no-build -- --standalone $outputPath" + $command = "dotnet run --project $script:AutoRestPluginProject --no-build -- --standalone $outputPath" } if ($clean) @@ -46,17 +46,17 @@ function Invoke-Autorest($baseOutput, $projectName, $autoRestArguments, $sharedS Invoke "dotnet build $outputPath --verbosity quiet /nologo" } -function Autorest-Reset() +function AutoRest-Reset() { - Invoke "$script:autorestBinary --reset" + Invoke "$script:autoRestBinary --reset" } -function Get-AutorestProject() +function Get-AutoRestProject() { - $AutorestPluginProject; + $AutoRestPluginProject; } Export-ModuleMember -Function "Invoke" -Export-ModuleMember -Function "Invoke-Autorest" -Export-ModuleMember -Function "Autorest-Reset" -Export-ModuleMember -Function "Get-AutorestProject" \ No newline at end of file +Export-ModuleMember -Function "Invoke-AutoRest" +Export-ModuleMember -Function "AutoRest-Reset" +Export-ModuleMember -Function "Get-AutoRestProject" \ No newline at end of file