a2aproject / a2aproject/a2a-cli

feat: rename `card get` to `card inspect`

未关闭
#15 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
95
派生
4
平均合并
3 天 2 小时
30 天内合并 PR
24

描述

## Problem

`card get` is misleading — the verb "get" implies a remote fetch, but the command works equally well with local `file://...` references where nothing is "gotten". The command's real purpose is **displaying/inspecting the contents of an agent card**, regardless of where it lives.

## Proposal

Rename `card get` to `card inspect` (preferred) or `card show`.

**Why `inspect`:**
- Matches the mental model — you are inspecting a card's contents
- Consistent with other CLI tooling conventions (`docker inspect`, `kubectl describe`)
- Works equally well for remote URLs and local `file://` references
- Avoids confusion with "fetching" or "downloading"

## Implementation notes

- Rename the command in `internal/cli/card_get.go` (and the file itself)
- Update `card.go` subcommand registration
- Add a deprecated `get` alias pointing to `inspect` for backwards compatibility
- Update README / docs

## References

- `internal/cli/card_get.go` — command implementation
- `internal/cli/card.go` — parent command registration

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。