Commit 43df33e
committed
refactor(cli): Refactor CLI to support lazy app resolution and enhance migration command handling
- Updated `buildServeCommand`, `buildMigrateCommand`, and related functions to resolve the app context lazily during command execution.
- Introduced `appProvider` in CLI configuration for deferred app creation.
- Enhanced migration command registration and execution, ensuring commands can access the app context dynamically.
- Added tests for lazy app resolution and global flag injection.
- Updated documentation to reflect changes in running apps and CLI options.
- Improved error handling for app availability in command contexts.1 parent eafbb06 commit 43df33e
File tree
13 files changed
+906
-195
lines changed- cli
- docs/content/docs/forge
- (cli)
- extensions/webrtc
13 files changed
+906
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
322 | 334 | | |
323 | 335 | | |
324 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
| |||
1367 | 1372 | | |
1368 | 1373 | | |
1369 | 1374 | | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1370 | 1378 | | |
1371 | 1379 | | |
1372 | 1380 | | |
| |||
1455 | 1463 | | |
1456 | 1464 | | |
1457 | 1465 | | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1458 | 1474 | | |
1459 | 1475 | | |
0 commit comments