@vwork/cli 0.1.6 → 0.1.7
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/command.js +1 -1
- package/dist/oclif-command.js +0 -5
- package/dist/runtime.js +3 -9
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const COMMAND_ROOTS = new Set(["apps", "db", "migrations", "functions", "codegen", "secrets", "kv", "queues", "
|
|
1
|
+
const COMMAND_ROOTS = new Set(["apps", "db", "migrations", "functions", "codegen", "secrets", "kv", "queues", "observability"]);
|
|
2
2
|
const BOOLEAN_FLAGS = new Set(["yes", "verbose", "help", "no-auth", "repair"]);
|
|
3
3
|
export function parseCommand(argv) {
|
|
4
4
|
const path = [];
|
package/dist/oclif-command.js
CHANGED
|
@@ -253,7 +253,6 @@ function helpText() {
|
|
|
253
253
|
" secrets list",
|
|
254
254
|
" kv namespaces list|create, entries list, stats, metrics",
|
|
255
255
|
" queues list, create, update, delete",
|
|
256
|
-
" runtime latest, publish",
|
|
257
256
|
" observability access-logs",
|
|
258
257
|
" login authenticate with VWork",
|
|
259
258
|
" whoami show the authenticated VWork user",
|
|
@@ -333,10 +332,6 @@ function resourceHelpText(resource) {
|
|
|
333
332
|
"update <queue-id> --app <app> [--batch-size <n>] [--dead-letter-enabled true|false]",
|
|
334
333
|
"delete <queue-id> --app <app>"
|
|
335
334
|
],
|
|
336
|
-
runtime: [
|
|
337
|
-
"latest",
|
|
338
|
-
"publish"
|
|
339
|
-
],
|
|
340
335
|
observability: [
|
|
341
336
|
"access-logs [--source <source>] [--app <app>] [--limit <n>]"
|
|
342
337
|
],
|
package/dist/runtime.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export async function runRuntimeCommand(command, client) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return { value: body.runtime_config };
|
|
6
|
-
}
|
|
7
|
-
if (action === "publish") {
|
|
8
|
-
return { value: await client.request("POST", "/runtime-config/publish") };
|
|
9
|
-
}
|
|
10
|
-
throw new Error(`Unknown runtime command: ${action ?? ""}`);
|
|
2
|
+
void command;
|
|
3
|
+
void client;
|
|
4
|
+
throw new Error("Runtime commands are not exposed in VWork CLI. Use function and observability commands for user-facing runtime data.");
|
|
11
5
|
}
|