@camox/cli 0.24.0 → 0.24.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.
Files changed (2) hide show
  1. package/dist/index.mjs +13 -0
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -378,6 +378,12 @@ const parser$7 = command("blocks", or(command("types", object({
378
378
  project: projectFlag$3,
379
379
  production: productionFlag$2,
380
380
  json: jsonFlag$3
381
+ })), command("get", object({
382
+ command: constant("blocks.get"),
383
+ id: option("--id", integer({ metavar: "ID" })),
384
+ project: projectFlag$3,
385
+ production: productionFlag$2,
386
+ json: jsonFlag$3
381
387
  })), command("create", object({
382
388
  command: constant("blocks.create"),
383
389
  pageId: option("--page-id", integer({ metavar: "ID" })),
@@ -464,6 +470,13 @@ async function handler$7(args) {
464
470
  production,
465
471
  outputMode
466
472
  });
473
+ case "blocks.get": return dispatch({
474
+ toolName: "getBlock",
475
+ args: { id: args.id },
476
+ projectFlag,
477
+ production,
478
+ outputMode
479
+ });
467
480
  case "blocks.create": {
468
481
  const content = parseJsonFlag("--content", args.content);
469
482
  const settings = args.settings !== void 0 ? parseJsonFlag("--settings", args.settings) : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^24.12.2",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
28
28
  "vite-plus": "latest",
29
- "@camox/api-contract": "0.24.0"
29
+ "@camox/api-contract": "0.24.1"
30
30
  },
31
31
  "nx": {
32
32
  "tags": [