@letterstory/cli 0.177.40 → 0.177.41
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 +1 -1
- package/lib/commands/replicate.mjs +7 -2
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
89
89
|
|
|
90
90
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
91
|
-
export const VERSION = "0.177.
|
|
91
|
+
export const VERSION = "0.177.41";
|
|
92
92
|
|
|
93
93
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
94
94
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
// attach_replication_repo, advance_replication, archive_replication, list_form_submissions), the
|
|
7
7
|
// same lib functions the app calls.
|
|
8
8
|
//
|
|
9
|
-
// letterstory replicate https://example.com [--max-pages 300] [--path /pricing --path /about] [--cookies "country=US; locale=en"] [--refine-budget 25] [--repo-name example-site] [--repo-owner <account>]
|
|
9
|
+
// letterstory replicate https://example.com [--max-pages 300] [--path /pricing --path /about] [--cookies "country=US; locale=en"] [--region us] [--refine-budget 25] [--repo-name example-site] [--repo-owner <account>]
|
|
10
10
|
// letterstory replicate list
|
|
11
11
|
// letterstory replicate show <id> [--failing]
|
|
12
12
|
// letterstory replicate attach <id> <repo-name> [--repo-owner <account>]
|
|
13
|
-
// letterstory replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>] [--keep-preview]
|
|
13
|
+
// letterstory replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>] [--keep-preview] [--region us|none]
|
|
14
14
|
// letterstory replicate archive <id>
|
|
15
15
|
// letterstory replicate forms [<id>] [--form <form>] [--limit <n>] [--before <iso>]
|
|
16
16
|
// letterstory replicate forms <id> --show-key (admins: LETTER_FORMS_URL and LETTER_FORMS_KEY to host it yourself)
|
|
@@ -27,6 +27,7 @@ export const ARGS = {
|
|
|
27
27
|
paths: { flag: "path", type: "list" },
|
|
28
28
|
sample_banner: { flag: "sample-banner", type: "bool" },
|
|
29
29
|
capture_cookies: "cookies",
|
|
30
|
+
capture_region: "region",
|
|
30
31
|
refine_budget_usd: { flag: "refine-budget", type: "num" },
|
|
31
32
|
repo_name: "repo-name",
|
|
32
33
|
repo_owner: "repo-owner",
|
|
@@ -48,6 +49,10 @@ export const ARGS = {
|
|
|
48
49
|
preview: { flag: "preview", type: "bool" },
|
|
49
50
|
extend_preview_days: { flag: "extend-preview", type: "num" },
|
|
50
51
|
keep_preview: { flag: "keep-preview", type: "bool" },
|
|
52
|
+
capture_region: {
|
|
53
|
+
value: (flags) =>
|
|
54
|
+
flags.region === undefined ? undefined : flags.region === "none" ? null : String(flags.region),
|
|
55
|
+
},
|
|
51
56
|
sample_banner: { flag: "sample-banner", type: "bool" },
|
|
52
57
|
},
|
|
53
58
|
archive_replication: { replication_id: replicationId },
|