lsh-framework 0.5.8 → 0.5.10

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.
Files changed (2) hide show
  1. package/dist/cli.js +33 -23
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -64,8 +64,17 @@ program
64
64
  await startInteractiveShell(options);
65
65
  }
66
66
  else {
67
- // No arguments - show help
68
- program.help();
67
+ // No arguments - show brief usage message
68
+ console.log('LSH - A modern shell with ZSH features and superior job management');
69
+ console.log('');
70
+ console.log('Usage: lsh [options] [command]');
71
+ console.log('');
72
+ console.log('Quick Start:');
73
+ console.log(' lsh -i Start interactive shell');
74
+ console.log(' lsh --help Show detailed help');
75
+ console.log(' lsh self update Update to latest version');
76
+ console.log('');
77
+ console.log('For full documentation, run: lsh help');
69
78
  }
70
79
  }
71
80
  catch (error) {
@@ -134,19 +143,17 @@ program
134
143
  (async () => {
135
144
  // REPL interactive shell
136
145
  await init_ishell(program);
137
- // Library commands (parent for supabase, daemon, cron, secrets)
146
+ // Library commands (parent for service commands)
138
147
  const libCommand = await init_lib(program);
139
148
  // Nest service commands under lib
140
149
  await init_supabase(libCommand);
141
150
  await init_daemon(libCommand);
142
151
  await init_cron(libCommand);
143
152
  await init_secrets(libCommand);
144
- // API server commands
145
- registerApiCommands(program);
146
- // ZSH import commands
147
- registerZshImportCommands(program);
148
- // Theme commands
149
- registerThemeCommands(program);
153
+ registerApiCommands(libCommand);
154
+ // Self-management commands with nested utilities
155
+ registerZshImportCommands(selfCommand);
156
+ registerThemeCommands(selfCommand);
150
157
  // Parse command line arguments after all commands are registered
151
158
  program.parse(process.argv);
152
159
  })();
@@ -446,13 +453,17 @@ function showDetailedHelp() {
446
453
  console.log(' script <file> Execute shell script');
447
454
  console.log(' config Manage configuration');
448
455
  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
456
  console.log(' help Show detailed help');
454
457
  console.log('');
458
+ console.log('Self-Management (lsh self <command>):');
459
+ console.log(' self update Update to latest version');
460
+ console.log(' self version Show version information');
461
+ console.log(' self uninstall Uninstall LSH from system');
462
+ console.log(' self theme Manage themes (import Oh-My-Zsh themes)');
463
+ console.log(' self zsh-import Import ZSH configs (aliases, functions, exports)');
464
+ console.log('');
455
465
  console.log('Library Commands (lsh lib <command>):');
466
+ console.log(' lib api API server management');
456
467
  console.log(' lib supabase Supabase database management');
457
468
  console.log(' lib daemon Daemon management');
458
469
  console.log(' lib daemon job Job management');
@@ -475,23 +486,22 @@ function showDetailedHelp() {
475
486
  console.log(' lsh self version # Show version');
476
487
  console.log(' lsh self update # Update to latest');
477
488
  console.log('');
489
+ console.log(' Self-Management:');
490
+ console.log(' lsh self update # Update to latest version');
491
+ console.log(' lsh self version # Show version');
492
+ console.log(' lsh self theme list # List available themes');
493
+ console.log(' lsh self theme import robbyrussell # Import Oh-My-Zsh theme');
494
+ console.log(' lsh self zsh-import aliases # Import ZSH aliases');
495
+ console.log('');
478
496
  console.log(' Library Services:');
479
497
  console.log(' lsh lib daemon start # Start daemon');
480
498
  console.log(' lsh lib daemon status # Check daemon status');
481
499
  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
500
  console.log(' lsh lib cron list # List cron jobs');
485
501
  console.log(' lsh lib secrets push # Push secrets to cloud');
486
- console.log(' lsh lib secrets pull # Pull secrets from cloud');
487
502
  console.log(' lsh lib secrets list # List environments');
488
- console.log(' lsh lib supabase status # Check Supabase connection');
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');
503
+ console.log(' lsh lib api start # Start API server');
504
+ console.log(' lsh lib api key # Generate API key');
495
505
  console.log('');
496
506
  console.log('Features:');
497
507
  console.log(' ✅ POSIX Shell Compliance (85-95%)');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "description": "A powerful, extensible shell with advanced job management, database persistence, and modern CLI features",
5
5
  "main": "dist/app.js",
6
6
  "bin": {