a2aproject / a2aproject/a2a-cli

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

Aberta Para iniciantes
#15 2 comentários 1 reação 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Go
Estrelas
95
Forks
4
Merge médio
3d 2h
PRs com merge (30d)
24

Descrição

## 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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

The command is implemented in `internal/cli/card_get.go` and registered in `internal/cli/card.go`. Start by renaming the file and command from 'get' to 'inspect', updating the registration, and adding a deprecated alias. Check for any usage in the README or other docs. Run the CLI tests to ensure the rename works and the alias functions.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
go, shell
Domínio
cli
Tipo de issue
Refatoração
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Ativa
Clareza
Claramente especificada
Facilidade para iniciantes
75/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.