@getmonoceros/workbench 1.38.1 → 1.38.3
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 +33 -13
- 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.3" : "dev";
|
|
8990
9000
|
}
|
|
8991
9001
|
});
|
|
8992
9002
|
|
|
@@ -11154,7 +11164,7 @@ var init_remove_apt_packages = __esm({
|
|
|
11154
11164
|
meta: {
|
|
11155
11165
|
name: "remove-apt-packages",
|
|
11156
11166
|
group: "edit",
|
|
11157
|
-
description: "Remove apt packages from the container config. Pass package names
|
|
11167
|
+
description: "Remove apt packages from the container config. Pass package names as arguments (e.g. `monoceros remove-apt-packages sandbox make jq`). Idempotent, prints a diff before writing."
|
|
11158
11168
|
},
|
|
11159
11169
|
args: {
|
|
11160
11170
|
name: {
|
|
@@ -11162,6 +11172,11 @@ var init_remove_apt_packages = __esm({
|
|
|
11162
11172
|
description: "Container name (yml in $MONOCEROS_HOME/container-configs/).",
|
|
11163
11173
|
required: true
|
|
11164
11174
|
},
|
|
11175
|
+
packages: {
|
|
11176
|
+
type: "positional",
|
|
11177
|
+
description: "One or more apt package names to remove (e.g. `make jq`). At least one is required.",
|
|
11178
|
+
required: false
|
|
11179
|
+
},
|
|
11165
11180
|
yes: {
|
|
11166
11181
|
type: "boolean",
|
|
11167
11182
|
description: "Skip the interactive confirmation and apply the diff.",
|
|
@@ -11170,10 +11185,10 @@ var init_remove_apt_packages = __esm({
|
|
|
11170
11185
|
}
|
|
11171
11186
|
},
|
|
11172
11187
|
async run({ args }) {
|
|
11173
|
-
const packages = [...getInnerArgs()];
|
|
11188
|
+
const packages = [...args._.slice(1).map(String), ...getInnerArgs()];
|
|
11174
11189
|
if (packages.length === 0) {
|
|
11175
11190
|
consola22.error(
|
|
11176
|
-
"No package names given. Usage: `monoceros remove-apt-packages <containername> [--yes]
|
|
11191
|
+
"No package names given. Usage: `monoceros remove-apt-packages <containername> [--yes] <pkg> [<pkg> \u2026]`."
|
|
11177
11192
|
);
|
|
11178
11193
|
process.exit(1);
|
|
11179
11194
|
}
|
|
@@ -11719,7 +11734,7 @@ var init_remove_port = __esm({
|
|
|
11719
11734
|
meta: {
|
|
11720
11735
|
name: "remove-port",
|
|
11721
11736
|
group: "edit",
|
|
11722
|
-
description: "Remove one or more ports from the container config. Pass port numbers
|
|
11737
|
+
description: "Remove one or more ports from the container config. Pass port numbers as arguments (e.g. `monoceros remove-port sandbox 3000 5173`). Idempotent \u2014 ports not present are skipped silently."
|
|
11723
11738
|
},
|
|
11724
11739
|
args: {
|
|
11725
11740
|
name: {
|
|
@@ -11727,6 +11742,11 @@ var init_remove_port = __esm({
|
|
|
11727
11742
|
description: "Container name (yml in $MONOCEROS_HOME/container-configs/).",
|
|
11728
11743
|
required: true
|
|
11729
11744
|
},
|
|
11745
|
+
ports: {
|
|
11746
|
+
type: "positional",
|
|
11747
|
+
description: "One or more port numbers to remove (e.g. `3000 5173`). At least one is required.",
|
|
11748
|
+
required: false
|
|
11749
|
+
},
|
|
11730
11750
|
yes: {
|
|
11731
11751
|
type: "boolean",
|
|
11732
11752
|
description: "Skip the interactive confirmation and apply the diff.",
|
|
@@ -11735,10 +11755,10 @@ var init_remove_port = __esm({
|
|
|
11735
11755
|
}
|
|
11736
11756
|
},
|
|
11737
11757
|
async run({ args }) {
|
|
11738
|
-
const tokens = [...getInnerArgs()];
|
|
11758
|
+
const tokens = [...args._.slice(1).map(String), ...getInnerArgs()];
|
|
11739
11759
|
if (tokens.length === 0) {
|
|
11740
11760
|
consola30.error(
|
|
11741
|
-
"No ports given. Usage: `monoceros remove-port <containername> [--yes]
|
|
11761
|
+
"No ports given. Usage: `monoceros remove-port <containername> [--yes] <port> [<port> \u2026]`."
|
|
11742
11762
|
);
|
|
11743
11763
|
process.exit(1);
|
|
11744
11764
|
}
|