File tree 1 file changed +10
-0
lines changed
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
135
135
136
136
const sysInfoData = await sysInfo.getSysInfo();
137
137
console.log("sysInfo: ", sysInfoData);
138
+
139
+ const gitPath = await sysInfo.getGitPath();
140
+ console.log("Path to the git executable: ", gitPath);
138
141
}
139
142
140
143
main();
@@ -273,6 +276,12 @@ Library that helps identifying if the environment can be used for development of
273
276
* @return {void}
274
277
*/
275
278
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>;
276
285
}
277
286
278
287
interface ISysInfoData {
@@ -462,6 +471,7 @@ Library that helps identifying if the environment can be used for development of
462
471
main();
463
472
```
464
473
- Interfaces:
474
+ ```TypeScript
465
475
/**
466
476
* Describes methods for getting and validating Android tools.
467
477
*/
You can’t perform that action at this time.
0 commit comments