@flowscripter/dynamic-cli-framework 5.0.0 → 5.0.2
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.
|
@@ -107,7 +107,7 @@ export default class CompletionServiceProvider {
|
|
|
107
107
|
catch (error) {
|
|
108
108
|
if (context.doesServiceExist(PRINTER_SERVICE_ID)) {
|
|
109
109
|
const printerService = context.getServiceById(PRINTER_SERVICE_ID);
|
|
110
|
-
await printerService.error(`Failed to install completion: ${error.message}`, Icon.FAILURE);
|
|
110
|
+
await printerService.error(`Failed to install completion: ${error.message}\n`, Icon.FAILURE);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -153,7 +153,7 @@ export default class CompletionServiceProvider {
|
|
|
153
153
|
await Bun.write(configPath, newContent);
|
|
154
154
|
if (context.doesServiceExist(PRINTER_SERVICE_ID)) {
|
|
155
155
|
const printerService = context.getServiceById(PRINTER_SERVICE_ID);
|
|
156
|
-
await printerService.info(`Shell completion installed for ${shellType}. Restart your shell or run 'source ${configPath}' to activate
|
|
156
|
+
await printerService.info(`Shell completion installed for ${shellType}. Restart your shell or run 'source ${configPath}' to activate.\n`, Icon.SUCCESS);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/dynamic-cli-framework",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "A framework for developing CLI applications which supports dynamic discovery and installation of new commands",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@flowscripter/dynamic-cli-framework-api": "^2.0.0",
|
|
52
|
-
"@flowscripter/dynamic-plugin-framework": "2.0.
|
|
52
|
+
"@flowscripter/dynamic-plugin-framework": "2.0.2",
|
|
53
53
|
"emphasize": "^7.0.0",
|
|
54
54
|
"fastest-levenshtein": "^1.0.16",
|
|
55
55
|
"figlet": "^1.11.0",
|
|
@@ -136,7 +136,7 @@ export default class CompletionServiceProvider implements ServiceProvider {
|
|
|
136
136
|
if (context.doesServiceExist(PRINTER_SERVICE_ID)) {
|
|
137
137
|
const printerService = context.getServiceById(PRINTER_SERVICE_ID) as PrinterService;
|
|
138
138
|
await printerService.error(
|
|
139
|
-
`Failed to install completion: ${(error as Error).message}`,
|
|
139
|
+
`Failed to install completion: ${(error as Error).message}\n`,
|
|
140
140
|
Icon.FAILURE,
|
|
141
141
|
);
|
|
142
142
|
}
|
|
@@ -194,7 +194,7 @@ export default class CompletionServiceProvider implements ServiceProvider {
|
|
|
194
194
|
if (context.doesServiceExist(PRINTER_SERVICE_ID)) {
|
|
195
195
|
const printerService = context.getServiceById(PRINTER_SERVICE_ID) as PrinterService;
|
|
196
196
|
await printerService.info(
|
|
197
|
-
`Shell completion installed for ${shellType}. Restart your shell or run 'source ${configPath}' to activate
|
|
197
|
+
`Shell completion installed for ${shellType}. Restart your shell or run 'source ${configPath}' to activate.\n`,
|
|
198
198
|
Icon.SUCCESS,
|
|
199
199
|
);
|
|
200
200
|
}
|