@eclipse-glsp/cli 2.7.0-next.13 → 2.7.0-next.16
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 +265 -3
- package/dist/cli.js +3937 -8772
- package/dist/cli.js.map +3 -3
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Commands:
|
|
|
26
26
|
updateNext|u [options] [rootDir] Updates all `next` dependencies in GLSP project to the latest version
|
|
27
27
|
generateIndex [options] <rootDir...> Generate index files in a given source directory.
|
|
28
28
|
releng Commands for GLSP release engineering (Linux only, intended for CI/Maintainer use).
|
|
29
|
+
repo Multi-repository management for GLSP projects
|
|
29
30
|
help [command] display help for command
|
|
30
31
|
```
|
|
31
32
|
|
|
@@ -198,11 +199,272 @@ Options:
|
|
|
198
199
|
-h, --help display help for command
|
|
199
200
|
```
|
|
200
201
|
|
|
201
|
-
##
|
|
202
|
+
## repo
|
|
202
203
|
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
Multi-repository workspace management for GLSP development.
|
|
205
|
+
All repositories are expected to live as siblings in a shared workspace directory (e.g. `~/glsp/glsp-client`, `~/glsp/glsp-server-node`, etc.).
|
|
206
|
+
Repositories are auto-discovered by scanning the workspace directory for known GLSP repo names.
|
|
207
|
+
The workspace directory is resolved automatically by walking up from the current directory; it can be overridden with `--dir`.
|
|
208
|
+
The clone protocol is auto-detected: if the GitHub CLI (`gh`) is installed and authenticated, `gh` is used; otherwise `https`.
|
|
209
|
+
This can be overridden per command via `--protocol`.
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
$ glsp repo -h
|
|
213
|
+
Usage: glsp repo [options] [command]
|
|
214
|
+
|
|
215
|
+
Multi-repository management for GLSP projects
|
|
216
|
+
|
|
217
|
+
Options:
|
|
218
|
+
-h, --help display help for command
|
|
219
|
+
|
|
220
|
+
Commands:
|
|
221
|
+
clone [options] [repos...] Clone GLSP repositories
|
|
222
|
+
fork [options] <user> Add fork remotes to already-cloned repositories
|
|
223
|
+
build [options] Build repositories (dependency-ordered)
|
|
224
|
+
link [options] Interlink repositories via yarn link
|
|
225
|
+
unlink [options] Remove yarn links between repositories
|
|
226
|
+
pwd [options] Print resolved paths for all discovered repositories
|
|
227
|
+
log [options] Print the last commit for all discovered repositories
|
|
228
|
+
workspace Manage VS Code workspace files for GLSP projects
|
|
229
|
+
glsp Operations on the glsp repository
|
|
230
|
+
glsp-server-node|server-node Operations on the glsp-server-node repository
|
|
231
|
+
glsp-client|client Operations on the glsp-client repository
|
|
232
|
+
glsp-theia-integration|theia Operations on the glsp-theia-integration repository
|
|
233
|
+
glsp-vscode-integration|vscode Operations on the glsp-vscode-integration repository
|
|
234
|
+
glsp-eclipse-integration|eclipse Operations on the glsp-eclipse-integration repository
|
|
235
|
+
glsp-server|server-java Operations on the glsp-server repository
|
|
236
|
+
glsp-playwright|playwright Operations on the glsp-playwright repository
|
|
237
|
+
help [command] display help for command
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### clone
|
|
241
|
+
|
|
242
|
+
Clones GLSP repositories into the workspace directory.
|
|
243
|
+
Repositories can be specified as positional arguments, via `--preset`, or interactively with `--interactive`.
|
|
244
|
+
|
|
245
|
+
```console
|
|
246
|
+
$ glsp repo clone -h
|
|
247
|
+
Usage: glsp repo clone [options] [repos...]
|
|
248
|
+
|
|
249
|
+
Clone GLSP repositories
|
|
250
|
+
|
|
251
|
+
Arguments:
|
|
252
|
+
repos Repositories to clone (can combine with --preset)
|
|
253
|
+
|
|
254
|
+
Options:
|
|
255
|
+
-d, --dir <path> Target directory for repo clones
|
|
256
|
+
-p, --protocol <protocol> Git clone protocol (default: gh|https) (choices: "ssh", "https", "gh")
|
|
257
|
+
-b, --branch <name> Branch or tag to check out after cloning
|
|
258
|
+
--fork <user> Clone from a fork and set up dual-remote (origin=fork, upstream=eclipse-glsp)
|
|
259
|
+
--override <mode> How to handle an existing target directory (choices: "rename", "remove")
|
|
260
|
+
--preset <name> Clone repos from a preset (choices: "core", "theia", "vscode",
|
|
261
|
+
"eclipse", "playwright", "all")
|
|
262
|
+
-i, --interactive Guided setup: choose preset, protocol, and fork interactively (default: false)
|
|
263
|
+
--no-fail-fast Continue cloning after a failure
|
|
264
|
+
-v, --verbose Verbose output (default: false)
|
|
265
|
+
-h, --help display help for command
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### fork
|
|
269
|
+
|
|
270
|
+
Adds fork remotes to already-cloned repositories. For each repo, restructures the git remotes so that
|
|
271
|
+
`origin` points to your fork and `upstream` points to `eclipse-glsp`. If the fork doesn't exist on GitHub
|
|
272
|
+
and the `gh` CLI is available, it will create one.
|
|
273
|
+
|
|
274
|
+
```console
|
|
275
|
+
$ glsp repo fork -h
|
|
276
|
+
Usage: glsp repo fork [options] <user>
|
|
277
|
+
|
|
278
|
+
Add fork remotes to already-cloned repositories
|
|
279
|
+
|
|
280
|
+
Arguments:
|
|
281
|
+
user GitHub username for the fork
|
|
282
|
+
|
|
283
|
+
Options:
|
|
284
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
285
|
+
-p, --protocol <protocol> Git clone protocol (default: gh|https) (choices: "ssh", "https", "gh")
|
|
286
|
+
-r, --repo <name...> Fork only these repos
|
|
287
|
+
--preset <name> Fork repos from a preset (choices: "core", "theia", "vscode",
|
|
288
|
+
"eclipse", "playwright", "all")
|
|
289
|
+
-v, --verbose Verbose output (default: false)
|
|
290
|
+
-h, --help display help for command
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### build
|
|
294
|
+
|
|
295
|
+
Builds repositories in dependency order. Understands the GLSP dependency graph and builds prerequisites first.
|
|
296
|
+
|
|
297
|
+
```console
|
|
298
|
+
$ glsp repo build -h
|
|
299
|
+
Usage: glsp repo build [options]
|
|
300
|
+
|
|
301
|
+
Build repositories (dependency-ordered)
|
|
302
|
+
|
|
303
|
+
Options:
|
|
304
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
305
|
+
-r, --repo <name...> Build only these repos
|
|
306
|
+
--preset <name> Build repos from a preset (choices: "core", "theia", "vscode",
|
|
307
|
+
"eclipse", "playwright", "all")
|
|
308
|
+
--electron Build Theia electron variant instead of browser (default: false)
|
|
309
|
+
--no-java Skip repositories that require Java/Maven
|
|
310
|
+
--no-fail-fast Continue building after a failure
|
|
311
|
+
-v, --verbose Verbose output (default: false)
|
|
312
|
+
-h, --help display help for command
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### link / unlink
|
|
316
|
+
|
|
317
|
+
Links (or unlinks) repositories via `yarn link` for cross-repo development.
|
|
318
|
+
Repositories are processed in dependency order, and singleton dependencies (sprotty, inversify, etc.)
|
|
319
|
+
are shared from `glsp-client` to avoid duplicate instances.
|
|
320
|
+
|
|
321
|
+
```console
|
|
322
|
+
$ glsp repo link -h
|
|
323
|
+
Usage: glsp repo link [options]
|
|
324
|
+
|
|
325
|
+
Interlink repositories via yarn link
|
|
326
|
+
|
|
327
|
+
Options:
|
|
328
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
329
|
+
-r, --repo <name...> Link only these repos
|
|
330
|
+
--preset <name> Link repos from a preset (choices: "core", "theia", "vscode",
|
|
331
|
+
"eclipse", "playwright", "all")
|
|
332
|
+
--no-fail-fast Continue after a failure
|
|
333
|
+
-v, --verbose Verbose output (default: false)
|
|
334
|
+
-h, --help display help for command
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### pwd
|
|
338
|
+
|
|
339
|
+
```console
|
|
340
|
+
$ glsp repo pwd -h
|
|
341
|
+
Usage: glsp repo pwd [options]
|
|
342
|
+
|
|
343
|
+
Print resolved paths for all discovered repositories
|
|
205
344
|
|
|
345
|
+
Options:
|
|
346
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
347
|
+
--raw Print repo<tab>path per line, no color (default: false)
|
|
348
|
+
-v, --verbose Verbose output (default: false)
|
|
349
|
+
-h, --help display help for command
|
|
206
350
|
```
|
|
207
351
|
|
|
352
|
+
### log
|
|
353
|
+
|
|
354
|
+
```console
|
|
355
|
+
$ glsp repo log -h
|
|
356
|
+
Usage: glsp repo log [options]
|
|
357
|
+
|
|
358
|
+
Print the last commit for all discovered repositories
|
|
359
|
+
|
|
360
|
+
Options:
|
|
361
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
362
|
+
-r, --repo <name...> Log only these repos
|
|
363
|
+
--preset <name> Log repos from a preset (choices: "core", "theia", "vscode",
|
|
364
|
+
"eclipse", "playwright", "all")
|
|
365
|
+
-v, --verbose Verbose output (default: false)
|
|
366
|
+
-h, --help display help for command
|
|
208
367
|
```
|
|
368
|
+
|
|
369
|
+
### workspace
|
|
370
|
+
|
|
371
|
+
Manage VS Code multi-root workspace files.
|
|
372
|
+
|
|
373
|
+
```console
|
|
374
|
+
$ glsp repo workspace init -h
|
|
375
|
+
Usage: glsp repo workspace init [options]
|
|
376
|
+
|
|
377
|
+
Generate a VS Code multi-root workspace file
|
|
378
|
+
|
|
379
|
+
Options:
|
|
380
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
381
|
+
-o, --output <path> Output path for the workspace file
|
|
382
|
+
-r, --repo <name...> Include only these repos
|
|
383
|
+
--preset <name> Include repos from a preset (choices: "core", "theia", "vscode",
|
|
384
|
+
"eclipse", "playwright", "all")
|
|
385
|
+
-v, --verbose Verbose output (default: false)
|
|
386
|
+
-h, --help display help for command
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
```console
|
|
390
|
+
$ glsp repo workspace open -h
|
|
391
|
+
Usage: glsp repo workspace open [options]
|
|
392
|
+
|
|
393
|
+
Open the VS Code workspace file
|
|
394
|
+
|
|
395
|
+
Options:
|
|
396
|
+
-d, --dir <path> Target directory where repos are cloned
|
|
397
|
+
-v, --verbose Verbose output (default: false)
|
|
398
|
+
-h, --help display help for command
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Scoped repository commands
|
|
402
|
+
|
|
403
|
+
Each repository has a set of scoped subcommands accessible via `glsp repo <name>` or its short alias.
|
|
404
|
+
Short aliases: `client`, `server-node`, `theia`, `vscode`, `eclipse`, `server-java`, `playwright`.
|
|
405
|
+
|
|
406
|
+
All repos support `clone`, `switch`, `build`, `pwd`, and `log` subcommands.
|
|
407
|
+
Some repos have additional repo-specific commands:
|
|
408
|
+
|
|
409
|
+
| Repo | Extra commands |
|
|
410
|
+
| ------------------------- | ---------------------- |
|
|
411
|
+
| `glsp-client` | `start` |
|
|
412
|
+
| `glsp-server-node` | `start` |
|
|
413
|
+
| `glsp-server` | `start` |
|
|
414
|
+
| `glsp-theia-integration` | `start`, `open` |
|
|
415
|
+
| `glsp-vscode-integration` | `vsix-path`, `package` |
|
|
416
|
+
|
|
417
|
+
```console
|
|
418
|
+
$ glsp repo client -h
|
|
419
|
+
Usage: glsp repo glsp-client|client [options] [command]
|
|
420
|
+
|
|
421
|
+
Operations on the glsp-client repository
|
|
422
|
+
|
|
423
|
+
Commands:
|
|
424
|
+
clone [options] Clone the glsp-client repository
|
|
425
|
+
switch [options] Switch branch or checkout a PR in glsp-client
|
|
426
|
+
build [options] Build the glsp-client repository
|
|
427
|
+
pwd [options] Print the resolved path for glsp-client
|
|
428
|
+
log [options] Print the last commit for glsp-client
|
|
429
|
+
start [options] Start the standalone example for glsp-client
|
|
430
|
+
help [command] display help for command
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
```console
|
|
434
|
+
$ glsp repo vscode -h
|
|
435
|
+
Usage: glsp repo glsp-vscode-integration|vscode [options] [command]
|
|
436
|
+
|
|
437
|
+
Operations on the glsp-vscode-integration repository
|
|
438
|
+
|
|
439
|
+
Commands:
|
|
440
|
+
clone [options] Clone the glsp-vscode-integration repository
|
|
441
|
+
switch [options] Switch branch or checkout a PR in glsp-vscode-integration
|
|
442
|
+
build [options] Build the glsp-vscode-integration repository
|
|
443
|
+
pwd [options] Print the resolved path for glsp-vscode-integration
|
|
444
|
+
log [options] Print the last commit for glsp-vscode-integration
|
|
445
|
+
vsix-path [options] Print the path to the workflow VSIX file
|
|
446
|
+
package [options] Package the workflow VS Code extension as a VSIX
|
|
447
|
+
help [command] display help for command
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
```console
|
|
451
|
+
$ glsp repo theia -h
|
|
452
|
+
Usage: glsp repo glsp-theia-integration|theia [options] [command]
|
|
453
|
+
|
|
454
|
+
Operations on the glsp-theia-integration repository
|
|
455
|
+
|
|
456
|
+
Commands:
|
|
457
|
+
clone [options] Clone the glsp-theia-integration repository
|
|
458
|
+
switch [options] Switch branch or checkout a PR in glsp-theia-integration
|
|
459
|
+
build [options] Build the glsp-theia-integration repository
|
|
460
|
+
pwd [options] Print the resolved path for glsp-theia-integration
|
|
461
|
+
log [options] Print the last commit for glsp-theia-integration
|
|
462
|
+
start [options] Start the Theia application for glsp-theia-integration
|
|
463
|
+
open [options] Open the Theia application in the browser for glsp-theia-integration
|
|
464
|
+
help [command] display help for command
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
## More information
|
|
468
|
+
|
|
469
|
+
For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
|
|
470
|
+
If you have questions, please raise them in the [discussions](https://github.com/eclipse-glsp/glsp/discussions) and have a look at our [communication and support options](https://www.eclipse.org/glsp/contact/).
|