Skip to content

Commit

Permalink
Show deprecation warning at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Jun 26, 2024
1 parent 3538ea1 commit 6920dd7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Refitter/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ public override async Task<int> ExecuteAsync(CommandContext context, Settings se
var json = await File.ReadAllTextAsync(settings.SettingsFilePath);
refitGeneratorSettings = Serializer.Deserialize<RefitGeneratorSettings>(json);
refitGeneratorSettings.OpenApiPath = settings.OpenApiPath!;

ShowDeprecationWarning(refitGeneratorSettings);
}

var generator = await RefitGenerator.CreateAsync(refitGeneratorSettings);
Expand All @@ -93,7 +91,8 @@ public override async Task<int> ExecuteAsync(CommandContext context, Settings se

if (!settings.NoBanner)
DonationBanner();


ShowDeprecationWarning(refitGeneratorSettings);
return 0;
}
catch (Exception exception)
Expand Down

0 comments on commit 6920dd7

Please sign in to comment.