dependencies messages, no curl on win32, fixes to min Version (#8039)

* checking temp work to move to another branch

* removing freeTds

* dependencies Messages and No curl on Win32

* elipsis instead of ...

* add min version check post install and pr fixes

* removing unnecessary comment

* removing old TODO comment

* fix text messages

* add github toke nto electron download (#8047)

* remove hardcode of kubectl version for download
This commit is contained in:
Arvind Ranasaria
2019-10-27 17:13:12 -07:00
committed by GitHub
parent 833adf3515
commit a7f597c943
8 changed files with 158 additions and 80 deletions

View File

@@ -14,13 +14,20 @@ export interface IToolsService {
}
export class ToolsService implements IToolsService {
private supportedTools: ITool[];
private supportedTools: Map<string, ITool>;
constructor(private _platformService: IPlatformService) {
this.supportedTools = [new DockerTool(this._platformService), new AzCliTool(this._platformService), new AzdataTool(this._platformService), new KubeCtlTool(this._platformService)];
this.supportedTools = new Map<string, ITool>(
[
new DockerTool(this._platformService),
new AzCliTool(this._platformService),
new AzdataTool(this._platformService),
new KubeCtlTool(this._platformService)
].map<[string, ITool]>((tool: ITool) => [tool.name, tool])
);
}
getToolByName(toolName: string): ITool | undefined {
return this.supportedTools.find(t => t.name === toolName);
return this.supportedTools.get(toolName);
}
}