Skip to content

Commit 6ab5d4a

Browse files
author
Ben Callaghan
committed
feat(dotnet): add a method to install local tools
Add a method that future builders can use to install additional tools Fixes #44
1 parent 996aaee commit 6ab5d4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ export class DotNetClient {
115115
return this.logAndExecute(cmd);
116116
}
117117

118+
installTool(tool: string): Buffer {
119+
const cmd = `${this.cliCommand.command} tool install ${tool}`;
120+
return this.logAndExecute(cmd);
121+
}
122+
118123
private logAndExecute(cmd: string): Buffer {
119124
console.log(`Executing Command: ${cmd}`);
120125
return execSync(cmd, { stdio: 'inherit' });

0 commit comments

Comments
 (0)