@letterstory/cli 0.98.1 → 0.98.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 +1 -1
- package/lib/commands/admin.mjs +7 -3
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./commands.mjs";
|
|
59
59
|
|
|
60
60
|
// Keep in sync with cli/package.json.
|
|
61
|
-
export const VERSION = "0.98.
|
|
61
|
+
export const VERSION = "0.98.2";
|
|
62
62
|
|
|
63
63
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
64
64
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -3824,7 +3824,7 @@ async function cmdAdminFleetExperiments(ctx) {
|
|
|
3824
3824
|
const org = rest.find(Boolean);
|
|
3825
3825
|
if (!id || !org)
|
|
3826
3826
|
throw new CliError(
|
|
3827
|
-
"Usage: admin fleet-experiments spin-up <experiment-id> <org-domain-or-id> [--no-control] [--own-beat] [--posts n]"
|
|
3827
|
+
"Usage: admin fleet-experiments spin-up <experiment-id> <org-domain-or-id> [--no-control] [--own-beat] [--cadence n] [--posts n]"
|
|
3828
3828
|
);
|
|
3829
3829
|
const body = {
|
|
3830
3830
|
action: "spin_up",
|
|
@@ -3833,13 +3833,17 @@ async function cmdAdminFleetExperiments(ctx) {
|
|
|
3833
3833
|
control: !flagBool(flags["no-control"]),
|
|
3834
3834
|
match: flagBool(flags["own-beat"]) ? "own_beat" : "twin",
|
|
3835
3835
|
...(flagStr(flags.posts) ? { posts_to_seed: Number(flagStr(flags.posts)) } : {}),
|
|
3836
|
+
...(flagStr(flags.cadence) ? { cadence_per_week: Number(flagStr(flags.cadence)) } : {}),
|
|
3836
3837
|
};
|
|
3837
3838
|
return out(await action(body), (r) =>
|
|
3838
3839
|
[
|
|
3839
3840
|
r.twins
|
|
3840
3841
|
? `launching twins for ${r.org.name} on "${r.sites[0]?.beat}":`
|
|
3841
3842
|
: `launching for ${r.org.name}:`,
|
|
3842
|
-
|
|
3843
|
+
` ${r.cadencePerWeek} posts a week each`,
|
|
3844
|
+
...r.sites.map(
|
|
3845
|
+
(s) => ` ${s.arm}: ${s.name ?? s.beat} [${s.theme} template] (onboarding ${s.jobId})`
|
|
3846
|
+
),
|
|
3843
3847
|
].join("\n")
|
|
3844
3848
|
);
|
|
3845
3849
|
}
|
|
@@ -3855,7 +3859,7 @@ async function cmdAdminFleetExperiments(ctx) {
|
|
|
3855
3859
|
}
|
|
3856
3860
|
default:
|
|
3857
3861
|
throw new CliError(
|
|
3858
|
-
'Usage: admin fleet-experiments list | articles [--experiment <id>] [--org <id>] [--filter all|assigned|unassigned] [--arm <arm>] [--q …] [--limit n] [--offset n] | mark <experiment-id> <article-id…> --arm <arm> | unmark <experiment-id> <article-id…> | new --template <key> | clients | spin-up <experiment-id> <org> [--no-control] [--own-beat] | start|stop <experiment-id> | decide <experiment-id> --decision "…"'
|
|
3862
|
+
'Usage: admin fleet-experiments list | articles [--experiment <id>] [--org <id>] [--filter all|assigned|unassigned] [--arm <arm>] [--q …] [--limit n] [--offset n] | mark <experiment-id> <article-id…> --arm <arm> | unmark <experiment-id> <article-id…> | new --template <key> | clients | spin-up <experiment-id> <org> [--no-control] [--own-beat] [--cadence n] | start|stop <experiment-id> | decide <experiment-id> --decision "…"'
|
|
3859
3863
|
);
|
|
3860
3864
|
}
|
|
3861
3865
|
}
|