Skip to content

Commit

Permalink
output usings
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemurray committed Nov 14, 2023
1 parent 3253006 commit 0c775e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotnet-gqlgen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private async void OnExecute()
Types = allTypes,
Enums = typeInfo.Enums,
Mutation = typeInfo.Mutation,
CmdArgs = $"-n {Namespace} -c {ClientClassName} -m {ScalarMapping} -u {Usings}",
CmdArgs = $"-n {Namespace} -c {ClientClassName} -m {ScalarMapping} -u {Usings.Replace("\n", "\\n")}",
Usings = Usings
});
Directory.CreateDirectory(OutputDir);
Expand All @@ -127,7 +127,7 @@ private async void OnExecute()
SchemaFile = Source,
Types = allTypes,
Mutation = typeInfo.Mutation,
CmdArgs = $"-n {Namespace} -c {ClientClassName} -m {ScalarMapping} -u {Usings}",
CmdArgs = $"-n {Namespace} -c {ClientClassName} -m {ScalarMapping} -u {Usings.Replace("\n", "\\n")}",
Usings = Usings
});
Directory.CreateDirectory(OutputDir);
Expand Down

0 comments on commit 0c775e7

Please sign in to comment.