@letterstory/cli 0.81.1 → 0.81.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/lib/cli.mjs CHANGED
@@ -57,7 +57,7 @@ import {
57
57
  } from "./commands.mjs";
58
58
 
59
59
  // Keep in sync with cli/package.json.
60
- export const VERSION = "0.81.1";
60
+ export const VERSION = "0.81.2";
61
61
 
62
62
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
63
63
  // can't accidentally swallow the id as --json's value.
@@ -75,6 +75,7 @@ const BOOLEAN_FLAGS = new Set([
75
75
  "verbose",
76
76
  "no-color",
77
77
  "dry-run",
78
+ "prune",
78
79
  "buy",
79
80
  "rebuild",
80
81
  "print-key",
@@ -118,7 +118,7 @@ export function joinBundle(dir) {
118
118
 
119
119
  async function orgExport(ctx) {
120
120
  const { client, flags, io } = ctx;
121
- refuseUnknownFlags(ctx, ARGS, ["split", "file"]);
121
+ refuseUnknownFlags(ctx, ARGS.export_org_config, ["split", "file"]);
122
122
  const { config } = await client.callTool("export_org_config", argsFromFlags(ARGS.export_org_config, flags));
123
123
  const split = flagStr(flags.split);
124
124
  const file = flagStr(flags.file);
@@ -186,7 +186,7 @@ export function formatPlan(plan) {
186
186
 
187
187
  async function orgDiff(ctx) {
188
188
  const { client, flags, io } = ctx;
189
- refuseUnknownFlags(ctx, ARGS);
189
+ refuseUnknownFlags(ctx, ARGS.diff_org_config);
190
190
  const { plan } = await client.callTool(
191
191
  "diff_org_config",
192
192
  argsFromFlags(ARGS.diff_org_config, flags, ctx.positionals)
@@ -210,7 +210,7 @@ export function formatApply(result) {
210
210
 
211
211
  async function orgApply(ctx) {
212
212
  const { client, flags, io } = ctx;
213
- refuseUnknownFlags(ctx, ARGS, ["yes"]);
213
+ refuseUnknownFlags(ctx, ARGS.apply_org_config, ["yes"]);
214
214
  if (flagBool(flags.prune) && !flagBool(flags["dry-run"]) && !flagBool(flags.yes))
215
215
  throw new CliError("--prune deletes records missing from the bundle. Review with --dry-run, then add --yes.");
216
216
  const { result } = await client.callTool(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.81.1",
3
+ "version": "0.81.2",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",