Skip to content

Commit d97d35b

Browse files
committed
Update README.md.
1 parent 75ded06 commit d97d35b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)