@prettifystudio/lyngo-cli 0.2.3 → 0.2.4
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/README.md +4 -2
- package/bin/lyngo +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,8 +26,10 @@ lyngo init # project, i18n setup, languages, agent hook
|
|
|
26
26
|
|
|
27
27
|
1. Shows the workspace it uses. `--workspace <name>` picks another one.
|
|
28
28
|
2. Finds the Lyngo project for the repository's `origin` remote, or creates it
|
|
29
|
-
when you own the workspace. When
|
|
30
|
-
link
|
|
29
|
+
when you own the workspace. When the Lyngo GitHub App cannot read the
|
|
30
|
+
repository yet, it prints the GitHub link where you add it; in a terminal it
|
|
31
|
+
waits until you have, in an agent or a script it stops, and the next run
|
|
32
|
+
continues (`--wait` makes it wait anyway).
|
|
31
33
|
3. Detects the framework and the i18n library.
|
|
32
34
|
4. Sets the languages: `--languages fr,de`, or it asks.
|
|
33
35
|
5. Applies the i18n setup as a patch to your working tree. It edits
|
package/bin/lyngo
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// lyngo login sign in once; the token goes to ~/.config/lyngo/token
|
|
7
7
|
// lyngo logout revoke the token and delete the file
|
|
8
8
|
// lyngo whoami who the token belongs to
|
|
9
|
-
// lyngo init [--languages fr,de] [--primary en] [--workspace <name>] [--yes] [--github]
|
|
9
|
+
// lyngo init [--languages fr,de] [--primary en] [--workspace <name>] [--yes] [--github] [--wait]
|
|
10
10
|
// connect this repository: project, scaffolding, languages, agent hook
|
|
11
11
|
// lyngo localize [--all] [--languages fr,de] [--no-translate] [--dry]
|
|
12
12
|
// localize (+ translate) the working tree's changes
|
|
@@ -228,6 +228,14 @@ async function connectProject(opts, remote, branch) {
|
|
|
228
228
|
console.log(messageOf(r.data, r.status));
|
|
229
229
|
if (r.data.connect_url) console.log(' ' + r.data.connect_url);
|
|
230
230
|
if (!r.data.owner) { process.exitCode = 1; return null; }
|
|
231
|
+
// No person at a terminal (an agent, a script): waiting would only get
|
|
232
|
+
// the command killed by the caller's timeout. Say what to do and stop;
|
|
233
|
+
// the next run picks up where this one ended (corp2, 2026-10-24).
|
|
234
|
+
if (!process.stdin.isTTY && !opts.github && !opts.wait) {
|
|
235
|
+
console.log('WAITING FOR THE PERSON: open the link above, add the repository to the Lyngo GitHub App, then run lyngo init again.');
|
|
236
|
+
process.exitCode = 3;
|
|
237
|
+
return null;
|
|
238
|
+
}
|
|
231
239
|
if (opts.github || await confirm('Open it now?', opts)) openUrl(r.data.connect_url);
|
|
232
240
|
console.log('Waiting for GitHub (up to 10 minutes)...');
|
|
233
241
|
const q = new URLSearchParams({ remote, ...(opts.workspace ? { workspace: opts.workspace } : {}) });
|
|
@@ -735,7 +743,7 @@ const HELP = `lyngo ${version()}: localization for your repository, from the ter
|
|
|
735
743
|
lyngo login sign in once (opens the browser)
|
|
736
744
|
lyngo logout revoke the token and delete it from this machine
|
|
737
745
|
lyngo whoami who the token belongs to
|
|
738
|
-
lyngo init [--languages fr,de] [--primary en] [--workspace <name>] [--yes] [--github]
|
|
746
|
+
lyngo init [--languages fr,de] [--primary en] [--workspace <name>] [--yes] [--github] [--wait]
|
|
739
747
|
connect this repository: project, i18n setup, languages, agent hook
|
|
740
748
|
(--languages are the target languages; the source stays en unless --primary)
|
|
741
749
|
lyngo onboard --run=<id> [--languages fr,de]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prettifystudio/lyngo-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Localization for Laravel applications, from the terminal: Lyngo wraps user-facing text with your framework's i18n call, reuses your project's keys, translates and verifies the catalogs. Blade, Livewire, PHP, and Inertia with React, Vue or Svelte.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lyngo": "bin/lyngo"
|