feat(cli): add ls alias for the list command#135
Merged
Conversation
`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>
e6ae4c6 to
e90c185
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
lsas a short alias foragent-tty list(list sessions), mirroring thed→dashboardalias added in #129.Why
lsis the muscle-memory command for "list things". Wiring it as an explicit Commander alias (not prefix matching) means it resolves unambiguously tolistand never collides with the other commands.Changes
src/cli/main.ts—.alias('ls')on the top-levellistcommand.test/integration/cli.test.ts— assertsagent-tty ls --helpresolves to thelistcommand (mirrors the existingd-alias test;--helpexits before the action so no Home Registry / reconcile is touched).CHANGELOG.md—[Unreleased] → Addedentry.Verification
agent-tty ls --help→Usage: agent-tty list|ls [options].vitest run test/integration/cli.test.ts— 31 passed.lint,typecheck,format:checkall clean.🤖 Generated with Claude Code