Skip to content

Commit

Permalink
src/core: allow tool takes extra arguments (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh authored Jul 31, 2024
1 parent d8b4e2f commit 3367e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Atlas.Provider.Core/Executor/EFDesign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public EFDesign(
string? rootNamespace,
string? language,
bool nullable,
string[] remainingArguments
string[]? remainingArguments
)
{
_commandsAssembly = Assembly.Load(new AssemblyName { Name = DesignAssemblyName });
Expand Down
5 changes: 3 additions & 2 deletions src/Atlas.Provider.Core/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ static void Main(
string language,
string framework,
string workingDir,
bool nullable = true
bool nullable = true,
string[]? args = null
)
{
using var executor = new EFDesign(
Expand All @@ -26,7 +27,7 @@ static void Main(
rootNamespace,
language,
nullable,
[]
args
);
var types = executor.GetContextTypes();
foreach (var type in types)
Expand Down

0 comments on commit 3367e43

Please sign in to comment.