File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,9 @@ Library that helps identifying if the environment can be used for development of
135135
136136 const sysInfoData = await sysInfo.getSysInfo();
137137 console.log("sysInfo: ", sysInfoData);
138+
139+ const gitPath = await sysInfo.getGitPath();
140+ console.log("Path to the git executable: ", gitPath);
138141 }
139142
140143 main();
@@ -273,6 +276,12 @@ Library that helps identifying if the environment can be used for development of
273276 * @return {void}
274277 */
275278 setShouldCacheSysInfo(shouldCache: boolean): void;
279+
280+ /**
281+ * Returns the path to the currently installed Git.
282+ * @return {Promise<string>} Returns the path to the currently installed Git. It will return null if Git is not installed.
283+ */
284+ getGitPath(): Promise<string>;
276285 }
277286
278287 interface ISysInfoData {
@@ -462,6 +471,7 @@ Library that helps identifying if the environment can be used for development of
462471 main();
463472 ```
464473 - Interfaces:
474+ ```TypeScript
465475 /**
466476 * Describes methods for getting and validating Android tools.
467477 */
You can’t perform that action at this time.
0 commit comments