Skip to content

Commit 2ab393f

Browse files
Merge pull request #1145 from microsoft/mk/fix-validate-exit-code
Return correct exit code on validation error
2 parents 3dcbaad + e557a39 commit 2ab393f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageId>Microsoft.OpenApi.Hidi</PackageId>
1616
<ToolCommandName>hidi</ToolCommandName>
1717
<PackageOutputPath>./../../artifacts</PackageOutputPath>
18-
<Version>1.2.0</Version>
18+
<Version>1.2.1</Version>
1919
<Description>OpenAPI.NET CLI tool for slicing OpenAPI documents</Description>
2020
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
2121
<PackageTags>OpenAPI .NET</PackageTags>

src/Microsoft.OpenApi.Hidi/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ namespace Microsoft.OpenApi.Hidi
1515
{
1616
static class Program
1717
{
18-
static async Task Main(string[] args)
18+
static async Task<int> Main(string[] args)
1919
{
2020
var rootCommand = CreateRootCommand();
2121

2222
// Parse the incoming args and invoke the handler
23-
await rootCommand.InvokeAsync(args);
24-
23+
return await rootCommand.InvokeAsync(args);
2524
}
2625

2726
internal static RootCommand CreateRootCommand()

0 commit comments

Comments
 (0)