Skip to content

Commit fe4bc14

Browse files
authored
feat(core): extra parameters support for run tool (#658)
1 parent 539ae39 commit fe4bc14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/dotnet/src/lib/core/dotnet.client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export class DotNetClient {
196196
tool: string,
197197
positionalParameters?: string[],
198198
parameters?: T,
199+
extraParameters?: string,
199200
) {
200201
const params = ['tool', 'run', tool];
201202

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

211+
if (extraParameters) {
212+
const matches = extraParameters.match(EXTRA_PARAMS_REGEX);
213+
params.push(...(matches as string[]));
214+
}
215+
210216
return this.logAndExecute(params);
211217
}
212218

0 commit comments

Comments
 (0)