Skip to content

feat(cli): add ls alias for the list command#135

Merged
ThomasK33 merged 1 commit into
mainfrom
feat/cli-ls-alias
Jun 9, 2026
Merged

feat(cli): add ls alias for the list command#135
ThomasK33 merged 1 commit into
mainfrom
feat/cli-ls-alias

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

What

Adds ls as a short alias for agent-tty list (list sessions), mirroring the ddashboard alias added in #129.

Why

ls is the muscle-memory command for "list things". Wiring it as an explicit Commander alias (not prefix matching) means it resolves unambiguously to list and never collides with the other commands.

Changes

  • src/cli/main.ts.alias('ls') on the top-level list command.
  • test/integration/cli.test.ts — asserts agent-tty ls --help resolves to the list command (mirrors the existing d-alias test; --help exits before the action so no Home Registry / reconcile is touched).
  • CHANGELOG.md[Unreleased] → Added entry.

Verification

  • agent-tty ls --helpUsage: agent-tty list|ls [options].
  • vitest run test/integration/cli.test.ts — 31 passed.
  • lint, typecheck, format:check all clean.

🤖 Generated with Claude Code

`agent-tty ls` now resolves to `agent-tty list`. Like the `d`→`dashboard`
alias, it is an explicit Commander alias (not prefix matching), so it
resolves unambiguously to `list` and never collides with other commands.

Change-Id: Id0acb444de05e1bf96bc3d8c3f18b86c62661527
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 force-pushed the feat/cli-ls-alias branch from e6ae4c6 to e90c185 Compare June 9, 2026 09:23
@ThomasK33 ThomasK33 merged commit f993534 into main Jun 9, 2026
12 checks passed
@ThomasK33 ThomasK33 deleted the feat/cli-ls-alias branch June 9, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant