Skip to content

Commit 6037d72

Browse files
committed
Removed unnecessary comments
Signed-off-by: Saurabh Kamat <kamatsaurabh01@gmail.com>
1 parent 467a085 commit 6037d72

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

dist/index.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26265,12 +26265,24 @@ function runBrew(packages) {
2626526265
});
2626626266
}
2626726267
exports.runBrew = runBrew;
26268+
/**
26269+
* Run brew unlink on a specified package
26270+
*
26271+
* @param packageName name of the package to be unlinked
26272+
* @returns Promise<number> exit code
26273+
*/
2626826274
function unlinkPackage(packageName) {
2626926275
return __awaiter(this, void 0, void 0, function* () {
2627026276
return utils.exec("brew", ["unlink", `${packageName}`]);
2627126277
});
2627226278
}
2627326279
exports.unlinkPackage = unlinkPackage;
26280+
/**
26281+
* Run brew link on a specified package
26282+
*
26283+
* @param packageName name of the package to be linked
26284+
* @returns Promise<number> exit code
26285+
*/
2627426286
function linkPackage(packageName) {
2627526287
return __awaiter(this, void 0, void 0, function* () {
2627626288
return utils.exec("brew", ["link", `${packageName}`]);
@@ -26481,13 +26493,11 @@ function addBrewRepo() {
2648126493
yield utils.exec("brew", ["tap", "osrf/simulation"]);
2648226494
});
2648326495
}
26496+
/**
26497+
* Overwrite existing python installation
26498+
*/
2648426499
function overwritePythonInstall() {
2648526500
return __awaiter(this, void 0, void 0, function* () {
26486-
// await utils.exec("find", [
26487-
// "/usr/local/bin -lname",
26488-
// "'*/Library/Frameworks/Python.framework/*'",
26489-
// "-delete",
26490-
// ]);
2649126501
yield utils.exec("sudo", [
2649226502
"rm",
2649326503
"-rf",

src/package_manager/brew.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ export async function runBrew(packages: string[]): Promise<number> {
1010
return utils.exec("brew", ["install"].concat(packages));
1111
}
1212

13+
/**
14+
* Run brew unlink on a specified package
15+
*
16+
* @param packageName name of the package to be unlinked
17+
* @returns Promise<number> exit code
18+
*/
1319
export async function unlinkPackage(packageName: string): Promise<number> {
1420
return utils.exec("brew", ["unlink", `${packageName}`]);
1521
}
1622

23+
/**
24+
* Run brew link on a specified package
25+
*
26+
* @param packageName name of the package to be linked
27+
* @returns Promise<number> exit code
28+
*/
1729
export async function linkPackage(packageName: string): Promise<number> {
1830
return utils.exec("brew", ["link", `${packageName}`]);
1931
}

src/setup-gazebo-macos.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ async function addBrewRepo(): Promise<void> {
88
await utils.exec("brew", ["tap", "osrf/simulation"]);
99
}
1010

11+
/**
12+
* Overwrite existing python installation
13+
*/
1114
export async function overwritePythonInstall(): Promise<void> {
12-
// await utils.exec("find", [
13-
// "/usr/local/bin -lname",
14-
// "'*/Library/Frameworks/Python.framework/*'",
15-
// "-delete",
16-
// ]);
1715
await utils.exec("sudo", [
1816
"rm",
1917
"-rf",

0 commit comments

Comments
 (0)