-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
The current --list command displays a wide table with many columns. We need to:
- Rename the current
--listcommand to--list-wide - Create a new compact
--listcommand that only displays essential columns
Current Behavior
The current --list command displays 9 columns:
- PORT
- DIRECTORY
- NAME
- STATUS
- LOCKED
- USER
- PID
- PROCESS
- ASSIGNED
Current output example:
PORT DIRECTORY NAME STATUS LOCKED USER PID PROCESS ASSIGNED
3000 ~/code/merchantly/main main free yes - - - 2026-01-03 20:53
3001 ~/code/valera main free yes - - - 2026-01-03 21:08
3005 ~/code/worktrees/feature/dashboard busy root - docker-proxy 2026-01-04 22:32
Desired Behavior
1. New --list-wide command (replacement for current --list)
Should show the same output as the current --list command.
Example:
$ port-selector --list-wideOutput:
PORT DIRECTORY NAME STATUS LOCKED USER PID PROCESS ASSIGNED
3000 ~/code/merchantly/main main free yes - - - 2026-01-03 20:53
3001 ~/code/valera main free yes - - - 2026-01-03 21:08
3005 ~/code/worktrees/feature/dashboard busy root - docker-proxy 2026-01-04 22:32
2. New compact --list command
Should display only these 5 columns:
- PORT
- DIRECTORY
- NAME
- STATUS
- LOCKED
Example:
$ port-selector --listOutput:
PORT DIRECTORY NAME STATUS LOCKED
3000 ~/code/merchantly/main main free yes
3001 ~/code/valera main free yes
3005 ~/code/worktrees/feature/dashboard busy -
3022 ~/tmp/test-project web free -
3023 ~/tmp/test-project api free -
Rationale
- Better UX: The current
--listoutput can be overwhelming with many columns. Most common use cases only need essential port information. - Backward compatibility: Moving current behavior to
--list-widepreserves full information access for those who need it. - Consistency: Compact table is more readable and follows Unix principle of providing simple output by default with detailed options available via explicit flags.
Technical Implementation
Complete technical specification with implementation details is available in the repository at:
- File: GITHUB_ISSUE_LIST_RENAME.md
Key Changes:
- Rename
runList()torunListWide()incmd/port-selector/main.go - Create new
runListCompact()function - Update flag parsing:
-land--list-widefor wide format,--listfor compact - Update help text to reflect new behavior
Related Files
cmd/port-selector/main.goREADME.md(needs updating)CLAUDE.md(needs updating)CHANGELOG.md(document this change)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels