Skip to content

Commit

Permalink
Rename tool to OpenApi.Hidi
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Nov 9, 2021
1 parent fb5512c commit 403a40f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Microsoft.OpenApi.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{6357D7FD-2
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.SmokeTests", "test\Microsoft.OpenApi.SmokeTests\Microsoft.OpenApi.SmokeTests.csproj", "{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Hidi", "src\Microsoft.Hidi\Microsoft.Hidi.csproj", "{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.Hidi", "src\Microsoft.Hidi\Microsoft.OpenApi.Hidi.csproj", "{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
4 changes: 2 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ dotnet msbuild %PROJ% /t:restore /p:Configuration=Release
dotnet msbuild %PROJ% /t:build /p:Configuration=Release
dotnet msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts

Echo Building Microsoft.Hidi
Echo Building Microsoft.OpenApi.Hidi

SET PROJ=%~dp0src\Microsoft.Hidi\Microsoft.Hidi.csproj
SET PROJ=%~dp0src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj
dotnet msbuild %PROJ% /t:restore /p:Configuration=Release
dotnet msbuild %PROJ% /t:build /p:Configuration=Release
dotnet msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts
Expand Down
8 changes: 4 additions & 4 deletions install-tool.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$latest = Get-ChildItem .\artifacts\ Microsoft.OpenApi.Tool* | select-object -Last 1
$latest = Get-ChildItem .\artifacts\ Microsoft.OpenApi.Hidi* | select-object -Last 1
$version = $latest.Name.Split(".")[3..5] | join-string -Separator "."

if (Test-Path -Path ./artifacts/openapi-parser.exe) {
dotnet tool uninstall --tool-path artifacts Microsoft.OpenApi.Tool
if (Test-Path -Path ./artifacts/hidi.exe) {
dotnet tool uninstall --tool-path artifacts Microsoft.OpenApi.Hidi
}
dotnet tool install --tool-path artifacts --add-source .\artifacts\ --version $version Microsoft.OpenApi.Tool
dotnet tool install --tool-path artifacts --add-source .\artifacts\ --version $version Microsoft.OpenApi.Hidi
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
using System.Net;
using System.Net.Http;
using System.Text;
using Microsoft.OpenApi;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Readers;
using Microsoft.OpenApi.Services;
using Microsoft.OpenApi.Validations;
using Microsoft.OpenApi.Writers;

namespace Microsoft.Hidi
namespace Microsoft.OpenApi.Hidi
{
static class OpenApiService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
using System.CommandLine.Invocation;
using System.IO;
using System.Threading.Tasks;
using Microsoft.OpenApi;

namespace Microsoft.Hidi
namespace Microsoft.OpenApi.Hidi
{
static class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Services;

namespace Microsoft.Hidi
namespace Microsoft.OpenApi.Hidi
{
internal class StatsVisitor : OpenApiVisitorBase
{
Expand Down

0 comments on commit 403a40f

Please sign in to comment.