@getmonoceros/workbench 1.38.1 → 1.38.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.
- package/dist/bin.js +17 -7
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6181,7 +6181,7 @@ var init_add_apt_packages = __esm({
|
|
|
6181
6181
|
meta: {
|
|
6182
6182
|
name: "add-apt-packages",
|
|
6183
6183
|
group: "edit",
|
|
6184
|
-
description: "Add Debian/Ubuntu apt packages to the container config. Pass package names
|
|
6184
|
+
description: "Add Debian/Ubuntu apt packages to the container config. Pass package names as arguments (e.g. `monoceros add-apt-packages sandbox make openssh-client jq`). Idempotent. No curated whitelist \u2014 invalid names surface as apt errors at container build time."
|
|
6185
6185
|
},
|
|
6186
6186
|
args: {
|
|
6187
6187
|
name: {
|
|
@@ -6189,6 +6189,11 @@ var init_add_apt_packages = __esm({
|
|
|
6189
6189
|
description: "Container name (yml in $MONOCEROS_HOME/container-configs/).",
|
|
6190
6190
|
required: true
|
|
6191
6191
|
},
|
|
6192
|
+
packages: {
|
|
6193
|
+
type: "positional",
|
|
6194
|
+
description: "One or more Debian/Ubuntu apt package names (e.g. `make jq`). At least one is required.",
|
|
6195
|
+
required: false
|
|
6196
|
+
},
|
|
6192
6197
|
yes: {
|
|
6193
6198
|
type: "boolean",
|
|
6194
6199
|
description: "Skip the interactive confirmation and apply the diff.",
|
|
@@ -6197,10 +6202,10 @@ var init_add_apt_packages = __esm({
|
|
|
6197
6202
|
}
|
|
6198
6203
|
},
|
|
6199
6204
|
async run({ args }) {
|
|
6200
|
-
const packages = [...getInnerArgs()];
|
|
6205
|
+
const packages = [...args._.slice(1).map(String), ...getInnerArgs()];
|
|
6201
6206
|
if (packages.length === 0) {
|
|
6202
6207
|
consola3.error(
|
|
6203
|
-
"No package names given. Usage: `monoceros add-apt-packages <containername> [--yes]
|
|
6208
|
+
"No package names given. Usage: `monoceros add-apt-packages <containername> [--yes] <pkg> [<pkg> \u2026]`."
|
|
6204
6209
|
);
|
|
6205
6210
|
process.exit(1);
|
|
6206
6211
|
}
|
|
@@ -6516,7 +6521,7 @@ var init_add_port = __esm({
|
|
|
6516
6521
|
meta: {
|
|
6517
6522
|
name: "add-port",
|
|
6518
6523
|
group: "edit",
|
|
6519
|
-
description: "Add one or more ports to the container config so they become reachable from the host via Traefik (`<container>.localhost` / `<container>-<port>.localhost`). Pass port numbers
|
|
6524
|
+
description: "Add one or more ports to the container config so they become reachable from the host via Traefik (`<container>.localhost` / `<container>-<port>.localhost`). Pass port numbers as arguments (e.g. `monoceros add-port sandbox 3000 5173 6006`). Idempotent. Persisted in the yml so later `monoceros apply` runs restore the routes. Pass `--default` together with a single port to make it the bare `<container>.localhost` route \u2014 the port is inserted at position 0 (or moved there if it already exists)."
|
|
6520
6525
|
},
|
|
6521
6526
|
args: {
|
|
6522
6527
|
name: {
|
|
@@ -6524,6 +6529,11 @@ var init_add_port = __esm({
|
|
|
6524
6529
|
description: "Container name (yml in $MONOCEROS_HOME/container-configs/).",
|
|
6525
6530
|
required: true
|
|
6526
6531
|
},
|
|
6532
|
+
ports: {
|
|
6533
|
+
type: "positional",
|
|
6534
|
+
description: "One or more port numbers to expose (e.g. `3000 5173`). At least one is required.",
|
|
6535
|
+
required: false
|
|
6536
|
+
},
|
|
6527
6537
|
yes: {
|
|
6528
6538
|
type: "boolean",
|
|
6529
6539
|
description: "Skip the interactive confirmation and apply the diff.",
|
|
@@ -6537,10 +6547,10 @@ var init_add_port = __esm({
|
|
|
6537
6547
|
}
|
|
6538
6548
|
},
|
|
6539
6549
|
async run({ args }) {
|
|
6540
|
-
const tokens = [...getInnerArgs()];
|
|
6550
|
+
const tokens = [...args._.slice(1).map(String), ...getInnerArgs()];
|
|
6541
6551
|
if (tokens.length === 0) {
|
|
6542
6552
|
consola8.error(
|
|
6543
|
-
"No ports given. Usage: `monoceros add-port <containername> [--
|
|
6553
|
+
"No ports given. Usage: `monoceros add-port <containername> [--default] [--yes] <port> [<port> \u2026]`."
|
|
6544
6554
|
);
|
|
6545
6555
|
process.exit(1);
|
|
6546
6556
|
}
|
|
@@ -8986,7 +8996,7 @@ var CLI_VERSION;
|
|
|
8986
8996
|
var init_version = __esm({
|
|
8987
8997
|
"src/version.ts"() {
|
|
8988
8998
|
"use strict";
|
|
8989
|
-
CLI_VERSION = true ? "1.38.
|
|
8999
|
+
CLI_VERSION = true ? "1.38.2" : "dev";
|
|
8990
9000
|
}
|
|
8991
9001
|
});
|
|
8992
9002
|
|