@abyrd9/harbor-cli 2.3.0 → 2.3.1

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/index.js +19 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -355,13 +355,15 @@ WHAT IT DOES:
355
355
 
356
356
  PREREQUISITES: Services must be running (started with 'harbor launch').
357
357
 
358
- EXAMPLE:
359
- harbor launch -d # Start in background
360
- harbor anchor # Attach to see the services`)
361
- .action(async () => {
358
+ EXAMPLES:
359
+ harbor launch -d # Start in background
360
+ harbor anchor # Attach to default session
361
+ harbor anchor --name my-app # Attach to a specific named session`)
362
+ .option('--name <name>', 'Specify which tmux session to attach to (defaults to config sessionName or "harbor")')
363
+ .action(async (options) => {
362
364
  try {
363
365
  const config = await readHarborConfig();
364
- const sessionName = config.sessionName || 'harbor';
366
+ const sessionName = options.name || config.sessionName || 'harbor';
365
367
  // Check if session exists
366
368
  const checkSession = spawn('tmux', ['has-session', '-t', sessionName], {
367
369
  stdio: 'pipe',
@@ -402,12 +404,14 @@ WHAT IT DOES:
402
404
 
403
405
  SAFE TO RUN: If no session is running, it simply reports that and exits cleanly.
404
406
 
405
- EXAMPLE:
406
- harbor scuttle # Stop all services`)
407
- .action(async () => {
407
+ EXAMPLES:
408
+ harbor scuttle # Stop default session
409
+ harbor scuttle --name my-app # Stop a specific named session`)
410
+ .option('--name <name>', 'Specify which tmux session to stop (defaults to config sessionName or "harbor")')
411
+ .action(async (options) => {
408
412
  try {
409
413
  const config = await readHarborConfig();
410
- const sessionName = config.sessionName || 'harbor';
414
+ const sessionName = options.name || config.sessionName || 'harbor';
411
415
  // Check if session exists
412
416
  const checkSession = spawn('tmux', ['has-session', '-t', sessionName], {
413
417
  stdio: 'pipe',
@@ -460,12 +464,14 @@ OUTPUT EXAMPLE:
460
464
 
461
465
  SAFE TO RUN: Works whether services are running or not.
462
466
 
463
- EXAMPLE:
464
- harbor bearings # Check what's running`)
465
- .action(async () => {
467
+ EXAMPLES:
468
+ harbor bearings # Check default session
469
+ harbor bearings --name my-app # Check a specific named session`)
470
+ .option('--name <name>', 'Specify which tmux session to check (defaults to config sessionName or "harbor")')
471
+ .action(async (options) => {
466
472
  try {
467
473
  const config = await readHarborConfig();
468
- const sessionName = config.sessionName || 'harbor';
474
+ const sessionName = options.name || config.sessionName || 'harbor';
469
475
  // Check if session exists
470
476
  const checkSession = spawn('tmux', ['has-session', '-t', sessionName], {
471
477
  stdio: 'pipe',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyrd9/harbor-cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "A CLI tool for orchestrating local development services in a tmux session. Perfect for microservices and polyglot projects with automatic service discovery and before/after script support.",
5
5
  "type": "module",
6
6
  "bin": {