lsh-framework 0.5.7 → 0.5.9
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/cli.js +42 -37
- package/dist/services/lib/lib.js +3 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -134,22 +134,17 @@ program
|
|
|
134
134
|
(async () => {
|
|
135
135
|
// REPL interactive shell
|
|
136
136
|
await init_ishell(program);
|
|
137
|
-
// Library commands
|
|
138
|
-
await init_lib(program);
|
|
139
|
-
//
|
|
140
|
-
await init_supabase(
|
|
141
|
-
|
|
142
|
-
await
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
//
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
registerApiCommands(program);
|
|
149
|
-
// ZSH import commands
|
|
150
|
-
registerZshImportCommands(program);
|
|
151
|
-
// Theme commands
|
|
152
|
-
registerThemeCommands(program);
|
|
137
|
+
// Library commands (parent for service commands)
|
|
138
|
+
const libCommand = await init_lib(program);
|
|
139
|
+
// Nest service commands under lib
|
|
140
|
+
await init_supabase(libCommand);
|
|
141
|
+
await init_daemon(libCommand);
|
|
142
|
+
await init_cron(libCommand);
|
|
143
|
+
await init_secrets(libCommand);
|
|
144
|
+
registerApiCommands(libCommand);
|
|
145
|
+
// Self-management commands with nested utilities
|
|
146
|
+
registerZshImportCommands(selfCommand);
|
|
147
|
+
registerThemeCommands(selfCommand);
|
|
153
148
|
// Parse command line arguments after all commands are registered
|
|
154
149
|
program.parse(process.argv);
|
|
155
150
|
})();
|
|
@@ -446,21 +441,27 @@ function showDetailedHelp() {
|
|
|
446
441
|
console.log('');
|
|
447
442
|
console.log('Subcommands:');
|
|
448
443
|
console.log(' repl JavaScript REPL interactive shell');
|
|
449
|
-
console.log(' lib Library commands');
|
|
450
|
-
console.log(' supabase Supabase database management');
|
|
451
444
|
console.log(' script <file> Execute shell script');
|
|
452
445
|
console.log(' config Manage configuration');
|
|
453
446
|
console.log(' zsh ZSH compatibility commands');
|
|
454
|
-
console.log(' zsh-import Import ZSH configs (aliases, functions, exports)');
|
|
455
|
-
console.log(' theme Manage themes (import Oh-My-Zsh themes)');
|
|
456
|
-
console.log(' self Self-management (update, version)');
|
|
457
|
-
console.log(' daemon Daemon management');
|
|
458
|
-
console.log(' daemon job Job management');
|
|
459
|
-
console.log(' daemon db Database integration');
|
|
460
|
-
console.log(' cron Cron job management');
|
|
461
|
-
console.log(' api API server management');
|
|
462
447
|
console.log(' help Show detailed help');
|
|
463
448
|
console.log('');
|
|
449
|
+
console.log('Self-Management (lsh self <command>):');
|
|
450
|
+
console.log(' self update Update to latest version');
|
|
451
|
+
console.log(' self version Show version information');
|
|
452
|
+
console.log(' self uninstall Uninstall LSH from system');
|
|
453
|
+
console.log(' self theme Manage themes (import Oh-My-Zsh themes)');
|
|
454
|
+
console.log(' self zsh-import Import ZSH configs (aliases, functions, exports)');
|
|
455
|
+
console.log('');
|
|
456
|
+
console.log('Library Commands (lsh lib <command>):');
|
|
457
|
+
console.log(' lib api API server management');
|
|
458
|
+
console.log(' lib supabase Supabase database management');
|
|
459
|
+
console.log(' lib daemon Daemon management');
|
|
460
|
+
console.log(' lib daemon job Job management');
|
|
461
|
+
console.log(' lib daemon db Database integration');
|
|
462
|
+
console.log(' lib cron Cron job management');
|
|
463
|
+
console.log(' lib secrets Secrets management');
|
|
464
|
+
console.log('');
|
|
464
465
|
console.log('Examples:');
|
|
465
466
|
console.log('');
|
|
466
467
|
console.log(' Shell Usage:');
|
|
@@ -476,18 +477,22 @@ function showDetailedHelp() {
|
|
|
476
477
|
console.log(' lsh self version # Show version');
|
|
477
478
|
console.log(' lsh self update # Update to latest');
|
|
478
479
|
console.log('');
|
|
479
|
-
console.log('
|
|
480
|
-
console.log(' lsh
|
|
481
|
-
console.log(' lsh
|
|
482
|
-
console.log(' lsh
|
|
483
|
-
console.log(' lsh
|
|
484
|
-
console.log(' lsh
|
|
480
|
+
console.log(' Self-Management:');
|
|
481
|
+
console.log(' lsh self update # Update to latest version');
|
|
482
|
+
console.log(' lsh self version # Show version');
|
|
483
|
+
console.log(' lsh self theme list # List available themes');
|
|
484
|
+
console.log(' lsh self theme import robbyrussell # Import Oh-My-Zsh theme');
|
|
485
|
+
console.log(' lsh self zsh-import aliases # Import ZSH aliases');
|
|
485
486
|
console.log('');
|
|
486
|
-
console.log('
|
|
487
|
-
console.log(' lsh
|
|
488
|
-
console.log(' lsh
|
|
489
|
-
console.log(' lsh
|
|
490
|
-
console.log(' lsh
|
|
487
|
+
console.log(' Library Services:');
|
|
488
|
+
console.log(' lsh lib daemon start # Start daemon');
|
|
489
|
+
console.log(' lsh lib daemon status # Check daemon status');
|
|
490
|
+
console.log(' lsh lib daemon job list # List all jobs');
|
|
491
|
+
console.log(' lsh lib cron list # List cron jobs');
|
|
492
|
+
console.log(' lsh lib secrets push # Push secrets to cloud');
|
|
493
|
+
console.log(' lsh lib secrets list # List environments');
|
|
494
|
+
console.log(' lsh lib api start # Start API server');
|
|
495
|
+
console.log(' lsh lib api key # Generate API key');
|
|
491
496
|
console.log('');
|
|
492
497
|
console.log('Features:');
|
|
493
498
|
console.log(' ✅ POSIX Shell Compliance (85-95%)');
|
package/dist/services/lib/lib.js
CHANGED
|
@@ -66,7 +66,9 @@ async function _makeCommand(commander) {
|
|
|
66
66
|
// // });
|
|
67
67
|
// }
|
|
68
68
|
export async function init_lib(program) {
|
|
69
|
-
const lib = program
|
|
69
|
+
const lib = program
|
|
70
|
+
.command("lib")
|
|
71
|
+
.description("LSH library and service commands");
|
|
70
72
|
// Load and register dynamic commands
|
|
71
73
|
const commands = await loadCommands();
|
|
72
74
|
for (const commandName of Object.keys(commands)) {
|