lsh-framework 0.5.8 → 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 +22 -21
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -134,19 +134,17 @@ program
|
|
|
134
134
|
(async () => {
|
|
135
135
|
// REPL interactive shell
|
|
136
136
|
await init_ishell(program);
|
|
137
|
-
// Library commands (parent for
|
|
137
|
+
// Library commands (parent for service commands)
|
|
138
138
|
const libCommand = await init_lib(program);
|
|
139
139
|
// Nest service commands under lib
|
|
140
140
|
await init_supabase(libCommand);
|
|
141
141
|
await init_daemon(libCommand);
|
|
142
142
|
await init_cron(libCommand);
|
|
143
143
|
await init_secrets(libCommand);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
// Theme commands
|
|
149
|
-
registerThemeCommands(program);
|
|
144
|
+
registerApiCommands(libCommand);
|
|
145
|
+
// Self-management commands with nested utilities
|
|
146
|
+
registerZshImportCommands(selfCommand);
|
|
147
|
+
registerThemeCommands(selfCommand);
|
|
150
148
|
// Parse command line arguments after all commands are registered
|
|
151
149
|
program.parse(process.argv);
|
|
152
150
|
})();
|
|
@@ -446,13 +444,17 @@ function showDetailedHelp() {
|
|
|
446
444
|
console.log(' script <file> Execute shell script');
|
|
447
445
|
console.log(' config Manage configuration');
|
|
448
446
|
console.log(' zsh ZSH compatibility commands');
|
|
449
|
-
console.log(' zsh-import Import ZSH configs (aliases, functions, exports)');
|
|
450
|
-
console.log(' theme Manage themes (import Oh-My-Zsh themes)');
|
|
451
|
-
console.log(' self Self-management (update, version)');
|
|
452
|
-
console.log(' api API server management');
|
|
453
447
|
console.log(' help Show detailed help');
|
|
454
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('');
|
|
455
456
|
console.log('Library Commands (lsh lib <command>):');
|
|
457
|
+
console.log(' lib api API server management');
|
|
456
458
|
console.log(' lib supabase Supabase database management');
|
|
457
459
|
console.log(' lib daemon Daemon management');
|
|
458
460
|
console.log(' lib daemon job Job management');
|
|
@@ -475,23 +477,22 @@ function showDetailedHelp() {
|
|
|
475
477
|
console.log(' lsh self version # Show version');
|
|
476
478
|
console.log(' lsh self update # Update to latest');
|
|
477
479
|
console.log('');
|
|
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');
|
|
486
|
+
console.log('');
|
|
478
487
|
console.log(' Library Services:');
|
|
479
488
|
console.log(' lsh lib daemon start # Start daemon');
|
|
480
489
|
console.log(' lsh lib daemon status # Check daemon status');
|
|
481
490
|
console.log(' lsh lib daemon job list # List all jobs');
|
|
482
|
-
console.log(' lsh lib daemon job create # Create new job');
|
|
483
|
-
console.log(' lsh lib daemon job trigger <id> # Run job immediately');
|
|
484
491
|
console.log(' lsh lib cron list # List cron jobs');
|
|
485
492
|
console.log(' lsh lib secrets push # Push secrets to cloud');
|
|
486
|
-
console.log(' lsh lib secrets pull # Pull secrets from cloud');
|
|
487
493
|
console.log(' lsh lib secrets list # List environments');
|
|
488
|
-
console.log(' lsh lib
|
|
489
|
-
console.log('');
|
|
490
|
-
console.log(' API Server:');
|
|
491
|
-
console.log(' lsh api start # Start daemon with API');
|
|
492
|
-
console.log(' lsh api key # Generate API key');
|
|
493
|
-
console.log(' lsh api test # Test API connection');
|
|
494
|
-
console.log(' lsh api example -l python # Show Python client code');
|
|
494
|
+
console.log(' lsh lib api start # Start API server');
|
|
495
|
+
console.log(' lsh lib api key # Generate API key');
|
|
495
496
|
console.log('');
|
|
496
497
|
console.log('Features:');
|
|
497
498
|
console.log(' ✅ POSIX Shell Compliance (85-95%)');
|