@tolkbot/cli 0.1.0 → 0.1.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.
- package/dist/index.js +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5787,7 +5787,7 @@ var require_out4 = __commonJS({
|
|
|
5787
5787
|
import { Command as Command6 } from "commander";
|
|
5788
5788
|
|
|
5789
5789
|
// package.json
|
|
5790
|
-
var version = "0.1.
|
|
5790
|
+
var version = "0.1.1";
|
|
5791
5791
|
|
|
5792
5792
|
// src/commands/auth/index.ts
|
|
5793
5793
|
import { Command } from "commander";
|
|
@@ -6242,8 +6242,8 @@ var env = createEnv({
|
|
|
6242
6242
|
function requireConvexUrl() {
|
|
6243
6243
|
if (!env.CONVEX_URL) {
|
|
6244
6244
|
throw new CliError(
|
|
6245
|
-
"CONVEX_URL is not set, so the CLI cannot reach the
|
|
6246
|
-
"Set CONVEX_URL to your
|
|
6245
|
+
"CONVEX_URL is not set, so the CLI cannot reach the TolkBot backend.",
|
|
6246
|
+
"Set CONVEX_URL to your TolkBot deployment URL."
|
|
6247
6247
|
);
|
|
6248
6248
|
}
|
|
6249
6249
|
return env.CONVEX_URL;
|
|
@@ -6750,9 +6750,9 @@ async function runAuthWhoami(opts = {}) {
|
|
|
6750
6750
|
|
|
6751
6751
|
// src/commands/auth/index.ts
|
|
6752
6752
|
var authCommand = new Command("auth").description(
|
|
6753
|
-
"Authenticate with
|
|
6753
|
+
"Authenticate with TolkBot"
|
|
6754
6754
|
);
|
|
6755
|
-
authCommand.command("login").description("Log in to
|
|
6755
|
+
authCommand.command("login").description("Log in to TolkBot").option(
|
|
6756
6756
|
"--no-browser",
|
|
6757
6757
|
"Print the login URL instead of opening a browser (for headless hosts)"
|
|
6758
6758
|
).action(async (opts) => {
|
|
@@ -6763,7 +6763,7 @@ authCommand.command("login").description("Log in to Tolkbot").option(
|
|
|
6763
6763
|
const parsed = validateOrExit(schema, opts);
|
|
6764
6764
|
await runAuthLogin({ noBrowser: !parsed.browser });
|
|
6765
6765
|
});
|
|
6766
|
-
authCommand.command("logout").description("Log out of
|
|
6766
|
+
authCommand.command("logout").description("Log out of TolkBot").option("--json", "Output as JSON (machine-readable)").action(async (opts) => {
|
|
6767
6767
|
const schema = z2.object({ json: z2.boolean().optional() });
|
|
6768
6768
|
const parsed = validateOrExit(schema, opts);
|
|
6769
6769
|
await runAuthLogout(parsed);
|
|
@@ -27646,7 +27646,7 @@ function HelpUI() {
|
|
|
27646
27646
|
" ",
|
|
27647
27647
|
" "
|
|
27648
27648
|
] }),
|
|
27649
|
-
/* @__PURE__ */ jsx10(Text10, { children: "Initialize
|
|
27649
|
+
/* @__PURE__ */ jsx10(Text10, { children: "Initialize TolkBot in the current repo" })
|
|
27650
27650
|
] }),
|
|
27651
27651
|
/* @__PURE__ */ jsxs9(Box10, { marginTop: 1, children: [
|
|
27652
27652
|
/* @__PURE__ */ jsx10(Text10, { color: "green", children: "auth" }),
|
|
@@ -27654,21 +27654,21 @@ function HelpUI() {
|
|
|
27654
27654
|
" ",
|
|
27655
27655
|
" "
|
|
27656
27656
|
] }),
|
|
27657
|
-
/* @__PURE__ */ jsx10(Text10, { children: "Authenticate with
|
|
27657
|
+
/* @__PURE__ */ jsx10(Text10, { children: "Authenticate with TolkBot" })
|
|
27658
27658
|
] }),
|
|
27659
27659
|
/* @__PURE__ */ jsxs9(Box10, { marginLeft: 2, children: [
|
|
27660
27660
|
/* @__PURE__ */ jsxs9(Text10, { dimColor: true, children: [
|
|
27661
27661
|
"\u2022 login ",
|
|
27662
27662
|
" "
|
|
27663
27663
|
] }),
|
|
27664
|
-
/* @__PURE__ */ jsx10(Text10, { children: "Log in to
|
|
27664
|
+
/* @__PURE__ */ jsx10(Text10, { children: "Log in to TolkBot" })
|
|
27665
27665
|
] }),
|
|
27666
27666
|
/* @__PURE__ */ jsxs9(Box10, { marginLeft: 2, children: [
|
|
27667
27667
|
/* @__PURE__ */ jsxs9(Text10, { dimColor: true, children: [
|
|
27668
27668
|
"\u2022 logout ",
|
|
27669
27669
|
" "
|
|
27670
27670
|
] }),
|
|
27671
|
-
/* @__PURE__ */ jsx10(Text10, { children: "Log out of
|
|
27671
|
+
/* @__PURE__ */ jsx10(Text10, { children: "Log out of TolkBot" })
|
|
27672
27672
|
] }),
|
|
27673
27673
|
/* @__PURE__ */ jsxs9(Box10, { marginLeft: 2, children: [
|
|
27674
27674
|
/* @__PURE__ */ jsxs9(Text10, { dimColor: true, children: [
|
|
@@ -27691,7 +27691,7 @@ function HelpUI() {
|
|
|
27691
27691
|
" ",
|
|
27692
27692
|
" "
|
|
27693
27693
|
] }),
|
|
27694
|
-
/* @__PURE__ */ jsx10(Text10, { children: "Translate with
|
|
27694
|
+
/* @__PURE__ */ jsx10(Text10, { children: "Translate with TolkBot" })
|
|
27695
27695
|
] }),
|
|
27696
27696
|
/* @__PURE__ */ jsxs9(Box10, { marginLeft: 2, children: [
|
|
27697
27697
|
/* @__PURE__ */ jsxs9(Text10, { dimColor: true, children: [
|
|
@@ -32955,7 +32955,7 @@ async function runStatus(opts) {
|
|
|
32955
32955
|
|
|
32956
32956
|
// src/commands/translate/index.ts
|
|
32957
32957
|
var translateCommand = new Command5("translate").description(
|
|
32958
|
-
"Translate with
|
|
32958
|
+
"Translate with TolkBot"
|
|
32959
32959
|
);
|
|
32960
32960
|
var RETRANSLATE_UNTRACKED_HELP = "Also retranslate translations TolkBot has no record of (kept by default)";
|
|
32961
32961
|
translateCommand.command("plan").description(
|
|
@@ -34283,7 +34283,7 @@ function buildProgram() {
|
|
|
34283
34283
|
setTokenOverride(token);
|
|
34284
34284
|
beginCommand(commandPath(actionCommand), version);
|
|
34285
34285
|
});
|
|
34286
|
-
program2.command("init").description("Initialize
|
|
34286
|
+
program2.command("init").description("Initialize TolkBot in the current repo").option("--force", "Overwrite existing config").option(
|
|
34287
34287
|
"-y, --yes",
|
|
34288
34288
|
"Skip all prompts, accepting detected settings. Required outside a terminal."
|
|
34289
34289
|
).option("--json", "Output the result as JSON (implies --yes)").option("--base <locale>", "Base locale (default: detected, else en)").option(
|
package/package.json
CHANGED