Skip to content

Commit

Permalink
feat(core): extra parameters support for run tool (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton authored Mar 18, 2023
1 parent 539ae39 commit fe4bc14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/dotnet/src/lib/core/dotnet.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export class DotNetClient {
tool: string,
positionalParameters?: string[],
parameters?: T,
extraParameters?: string,
) {
const params = ['tool', 'run', tool];

Expand All @@ -207,6 +208,11 @@ export class DotNetClient {
params.push(...getSpawnParameterArray(parameters));
}

if (extraParameters) {
const matches = extraParameters.match(EXTRA_PARAMS_REGEX);
params.push(...(matches as string[]));
}

return this.logAndExecute(params);
}

Expand Down

0 comments on commit fe4bc14

Please sign in to comment.