@aneuhold/core-ts-lib 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,5 +14,6 @@ export default class FileSystemService {
|
|
|
14
14
|
*/
|
|
15
15
|
static findAndInsertText(folderPath: string, fileName: string, textToInsert: string): Promise<void>;
|
|
16
16
|
private static openWindowsNugetCache;
|
|
17
|
+
private static openMacNugetCache;
|
|
17
18
|
}
|
|
18
19
|
//# sourceMappingURL=FileSystemService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSystemService.d.ts","sourceRoot":"","sources":["../../../src/services/applications/FileSystemService.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"FileSystemService.d.ts","sourceRoot":"","sources":["../../../src/services/applications/FileSystemService.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5C;;;;;;;OAOG;WACU,iBAAiB,CAC5B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC;mBA8BK,qBAAqB;mBAOrB,iBAAiB;CAMvC"}
|
|
@@ -41,6 +41,10 @@ class FileSystemService {
|
|
|
41
41
|
await FileSystemService.openWindowsNugetCache();
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
+
if (CurrentEnv_1.default.os === CurrentEnv_1.OperatingSystemType.MacOSX) {
|
|
45
|
+
await FileSystemService.openMacNugetCache();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
44
48
|
Logger_1.default.error('Not implemented for this OS yet.');
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
@@ -83,5 +87,11 @@ class FileSystemService {
|
|
|
83
87
|
CLIService_1.default.execCmd(`ii $HOME/.nuget/packages`)
|
|
84
88
|
]);
|
|
85
89
|
}
|
|
90
|
+
static async openMacNugetCache() {
|
|
91
|
+
await Promise.all([
|
|
92
|
+
CLIService_1.default.execCmd(`open $HOME/localNuget`),
|
|
93
|
+
CLIService_1.default.execCmd(`open $HOME/.nuget/packages`)
|
|
94
|
+
]);
|
|
95
|
+
}
|
|
86
96
|
}
|
|
87
97
|
exports.default = FileSystemService;
|