@flowscripter/dynamic-cli-framework 7.0.5 → 7.0.6
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.
|
@@ -31,6 +31,9 @@ import type BaseCLIFeatureOptions from "./BaseCLIFeatureOptions.ts";
|
|
|
31
31
|
* * {@link UpgradeServiceProvider}
|
|
32
32
|
* * {@link PluginServiceProvider}
|
|
33
33
|
*
|
|
34
|
+
* Enabling the plugin service also registers {@link SpawnServiceProvider}, as plugin installation
|
|
35
|
+
* spawns the package manager via the spawn service.
|
|
36
|
+
*
|
|
34
37
|
* `keyReader` is optional. If omitted, or if the stderr {@link Terminal} is not a TTY, prompting is
|
|
35
38
|
* unavailable: {@link PrompterServiceProvider} (and {@link ArgumentPrompterServiceProvider}, if
|
|
36
39
|
* enabled) are simply not registered. If `promptingEnabled` is `true` in that situation, {@link run}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCLI.d.ts","sourceRoot":"","sources":["../../../src/cli/BaseCLI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAGvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAsBzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAS3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AAGpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,qBAAqB,MAAM,4B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AAC,OAAO,EAAE,OAAO,QAQjC;IAEK,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAwOzD;CACF"}
|
package/dist/src/cli/BaseCLI.js
CHANGED
|
@@ -54,6 +54,9 @@ const logger = getLogger("BaseCLI");
|
|
|
54
54
|
* * {@link UpgradeServiceProvider}
|
|
55
55
|
* * {@link PluginServiceProvider}
|
|
56
56
|
*
|
|
57
|
+
* Enabling the plugin service also registers {@link SpawnServiceProvider}, as plugin installation
|
|
58
|
+
* spawns the package manager via the spawn service.
|
|
59
|
+
*
|
|
57
60
|
* `keyReader` is optional. If omitted, or if the stderr {@link Terminal} is not a TTY, prompting is
|
|
58
61
|
* unavailable: {@link PrompterServiceProvider} (and {@link ArgumentPrompterServiceProvider}, if
|
|
59
62
|
* enabled) are simply not registered. If `promptingEnabled` is `true` in that situation, {@link run}
|
|
@@ -213,7 +216,9 @@ export default class BaseCLI {
|
|
|
213
216
|
logger.debug("Skipping ImagePrinterServiceProvider: imagePrinterServiceEnabled is true but stdout is not a TTY");
|
|
214
217
|
}
|
|
215
218
|
}
|
|
216
|
-
|
|
219
|
+
// The plugin service routes package manager output through SpawnService so that it is
|
|
220
|
+
// quoted, marked and cleared on success; enabling plugins therefore also enables spawning.
|
|
221
|
+
if (this.#options.spawnServiceEnabled || this.#options.pluginServiceEnabled) {
|
|
217
222
|
this.addServiceProvider(new SpawnServiceProvider(58));
|
|
218
223
|
}
|
|
219
224
|
if (this.#options.fetchServiceEnabled) {
|
package/package.json
CHANGED
package/src/cli/BaseCLI.ts
CHANGED
|
@@ -84,6 +84,9 @@ const logger = getLogger("BaseCLI");
|
|
|
84
84
|
* * {@link UpgradeServiceProvider}
|
|
85
85
|
* * {@link PluginServiceProvider}
|
|
86
86
|
*
|
|
87
|
+
* Enabling the plugin service also registers {@link SpawnServiceProvider}, as plugin installation
|
|
88
|
+
* spawns the package manager via the spawn service.
|
|
89
|
+
*
|
|
87
90
|
* `keyReader` is optional. If omitted, or if the stderr {@link Terminal} is not a TTY, prompting is
|
|
88
91
|
* unavailable: {@link PrompterServiceProvider} (and {@link ArgumentPrompterServiceProvider}, if
|
|
89
92
|
* enabled) are simply not registered. If `promptingEnabled` is `true` in that situation, {@link run}
|
|
@@ -299,7 +302,9 @@ export default class BaseCLI implements CLI {
|
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
304
|
|
|
302
|
-
|
|
305
|
+
// The plugin service routes package manager output through SpawnService so that it is
|
|
306
|
+
// quoted, marked and cleared on success; enabling plugins therefore also enables spawning.
|
|
307
|
+
if (this.#options.spawnServiceEnabled || this.#options.pluginServiceEnabled) {
|
|
303
308
|
this.addServiceProvider(new SpawnServiceProvider(58));
|
|
304
309
|
}
|
|
305
310
|
|