Expand description
CLI-shaped Reply formatter for the kevy-cli REPL.
Only format_reply lives here — the protocol pieces (TCP connect, request
loop) live in the kevy-resp-client
crate so they’re reusable by integration tests / scripts / other tools.
This file is the CLI-specific bit (how a redis-cli user expects bulk
strings quoted, arrays numbered, nil shown as (nil)).
Modules§
- backfill_
keys doctor— every table’s VERIFY counters, turned into an exit code a cron can act on.backfill-keys— the union of every structure that can name an item.- backup
- Backup / restore container support. See
backup::packandbackup::unpack.kevy-cli backup/kevy-cli restoresubcommands. - bulk
- Prefix bulk ops + diagnostics (
copy-prefix/delete-prefix/digest/diff/inspect). Prefix bulk ops + diagnostics:copy-prefix/delete-prefix(token-bucket rate limit,--dry-run),digest,diff,inspect. - doctor
doctor— run every table’sVERIFYand turn the counters into an exit code.- lint
lint— the two questions worth asking about a shape, before and after the table exists.- migrate
- Migration toolchain (
export/import). Seemigrate::run_exportandmigrate::run_import. Migration toolchain:export/import. - shadow
shadow— run the old query and the new one side by side and report where they disagree, in membership AND in order.shadow— run the old query and the new one side by side and say where they disagree.
Enums§
- Reply
- A parsed RESP reply (server → client) — the client-side counterpart of
the crate’s
encode_*functions (server-side encoders).
Constants§
- DEFAULT_
HOST - Where a subcommand connects when the caller says nothing. Shared rather than repeated: two copies of a default is a drift waiting to be reported as a bug.
- DEFAULT_
PORT - The port half of the same default.
Functions§
- format_
reply - Pretty-print a reply roughly the way
redis-clidoes. Arrays are numbered + indented; bulk strings are quoted; nil shows as(nil). - route_
tool - Route the migration-playbook tools, which share a shape: they read
and report, none of them moves data, and each exits with its own
verdict.
Nonewhenargsnames something else.