Skip to content

Commit

Permalink
fix(tool): Ignore response files when parsing command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectlyNormal committed Nov 11, 2024
1 parent a694da3 commit 06b1d9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add basic template for React with Axios

### Fixed

- Ignore response files when parsing command line, so "@/Api" can be accepted as a valid relative root

## [0.13.0] - 2024-11-09

### Added
Expand Down
9 changes: 7 additions & 2 deletions TypeContractor.Tool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Parsing;
using TypeContractor.Logger;
using TypeContractor.Tool;

Expand Down Expand Up @@ -82,8 +84,11 @@
buildZodSchemasValue,
generateApiClientsValue,
apiClientsTemplateValue);

context.ExitCode = await generator.Execute();
});

return await rootCommand.InvokeAsync(args);
var configuration = new CommandLineConfiguration(rootCommand, enableTokenReplacement: false);
var parser = new Parser(configuration);

return await parser.InvokeAsync(args);

0 comments on commit 06b1d9a

Please sign in to comment.