@getmonoceros/workbench 1.36.0 → 1.36.1
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.
- package/dist/bin.js +22 -2
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -8772,7 +8772,7 @@ var CLI_VERSION;
|
|
|
8772
8772
|
var init_version = __esm({
|
|
8773
8773
|
"src/version.ts"() {
|
|
8774
8774
|
"use strict";
|
|
8775
|
-
CLI_VERSION = true ? "1.36.
|
|
8775
|
+
CLI_VERSION = true ? "1.36.1" : "dev";
|
|
8776
8776
|
}
|
|
8777
8777
|
});
|
|
8778
8778
|
|
|
@@ -9324,6 +9324,22 @@ async function listAppCandidates(ctx) {
|
|
|
9324
9324
|
return [];
|
|
9325
9325
|
}
|
|
9326
9326
|
}
|
|
9327
|
+
async function listAppOrServiceCandidates(ctx) {
|
|
9328
|
+
const name = containerNameFromCtx(ctx);
|
|
9329
|
+
if (!name) return [];
|
|
9330
|
+
const apps = await listApps(name, ctx.opts.monocerosHome).catch(() => []);
|
|
9331
|
+
let services = [];
|
|
9332
|
+
try {
|
|
9333
|
+
const parsed = await readConfig(
|
|
9334
|
+
containerConfigPath(name, ctx.opts.monocerosHome)
|
|
9335
|
+
);
|
|
9336
|
+
services = solutionConfigToCreateOptions(parsed.config).services.map(
|
|
9337
|
+
(s) => s.name
|
|
9338
|
+
);
|
|
9339
|
+
} catch {
|
|
9340
|
+
}
|
|
9341
|
+
return [.../* @__PURE__ */ new Set([...apps, ...services])].sort();
|
|
9342
|
+
}
|
|
9327
9343
|
async function listTargetCandidates(ctx) {
|
|
9328
9344
|
const name = containerNameFromCtx(ctx);
|
|
9329
9345
|
const app = positionalFromCtx(ctx, 1);
|
|
@@ -9437,6 +9453,8 @@ var init_resolve = __esm({
|
|
|
9437
9453
|
"src/completion/resolve.ts"() {
|
|
9438
9454
|
"use strict";
|
|
9439
9455
|
init_paths();
|
|
9456
|
+
init_io();
|
|
9457
|
+
init_transform();
|
|
9440
9458
|
init_launch_config();
|
|
9441
9459
|
init_components();
|
|
9442
9460
|
init_manifest();
|
|
@@ -9543,7 +9561,9 @@ var init_resolve = __esm({
|
|
|
9543
9561
|
"--target": { type: "value", values: (ctx) => listTargetCandidates(ctx) }
|
|
9544
9562
|
}
|
|
9545
9563
|
},
|
|
9546
|
-
status: {
|
|
9564
|
+
status: {
|
|
9565
|
+
positionals: [containerName, (ctx) => listAppOrServiceCandidates(ctx)]
|
|
9566
|
+
},
|
|
9547
9567
|
"list-apps": { positionals: [containerName] },
|
|
9548
9568
|
"add-language": {
|
|
9549
9569
|
positionals: [containerName, () => listLanguageNames()]
|