Skip to content

docs(cast): group the decode-* commands under ABI Commands - #2190

Open
QuincyGB wants to merge 1 commit into
foundry-rs:masterfrom
QuincyGB:docs/cast-decode-abi-commands
Open

QuincyGB wants to merge 1 commit into
foundry-rs:masterfrom
QuincyGB:docs/cast-decode-abi-commands

Conversation

@QuincyGB

Copy link
Copy Markdown
Contributor

Summary

The cast reference sidebar splits the decode-* family: cast decode-abi and cast decode-calldata sit under "ABI Commands", while cast decode-error, cast decode-event, cast decode-string and cast decode-transaction fall through to "Utility Commands". #1483 asked for the ABI Commands part to stop missing the decode functions from the decode-XXX rename (foundry-rs/foundry#9413).

This groups all six decode-* commands under "ABI Commands":

  • scripts/gen_output/help.rs: add decode-error, decode-event, decode-string and decode-transaction to the ABI Commands arm of categorize_command, so the grouping survives regeneration.
  • sidebar/cast-cli-reference.ts: move the four entries into the ABI Commands group, in the alphabetical position the generator sorts them into (after decode-calldata).

Verification

  • Command set checked against the CLI version the book documents (cast 1.8.6-nightly, commit 845d99cd, per src/pages/reference/versions.mdx): the generated cast --help output in src/pages/reference/cast/cast.mdx lists exactly these six decode-* commands, and each already has a reference page — only the sidebar grouping was missing them.
  • vp check sidebar/cast-cli-reference.ts passes (format and lint).
  • bun x vocs build completes, and the built sidebar config shows the four commands inside the ABI Commands group and no longer under Utility Commands.
  • scripts/gen_output.sh was not re-run: it rewrites the entire generated surface and requires the Foundry binaries and networked examples. The sidebar edit is the deterministic result of the help.rs mapping change — same group membership and ordering the generator emits.

Closes #1483

@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

@QuincyGB is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Update cast ABI Commands part (outdated and missing decode-XXX commands)

1 participant