Repository navigation
docs(cargo-oxide): the CLI crate's own README is missing two of its commands - #980
Merged
nihalpasham merged 2 commits intoAug 18, 2026
Merged
Conversation
…ommands `crates/cargo-oxide/README.md` has a `### cargo oxide <cmd>` section for 13 of the 15 user-facing subcommands. `inspect` and `clean` have none: inspect Build an example or project and print the generated PTX clean Remove project-local build outputs and generated cuda-oxide artifacts Both are in `cargo oxide --help`, so the CLI advertises them and its own documentation does not explain them. `inspect` is the one worth having: it is the quick way to see the finished PTX, which is what most people opening this README are trying to do, and `pipeline` -- the verbose whole-pipeline dump -- is the only nearby thing documented. This is the gap `scripts/check-cli-doc-coverage.sh` exists to prevent, one file over. That guard reads the book's command reference and this README is outside its scope, exactly as `check-crate-inventory.sh` reads README.md and could not see the book's Crate Map in NVIDIA#970. Both new sections are written in the existing house style, with the flags taken from `--help` rather than from the clap source, so what is documented is what a user sees. `materializer-handshake` stays undocumented on purpose: it is `#[command(name = "__materializer-handshake", hide = true)]`, and the book guard already accounts for it as "1 hidden one(s) correctly excluded". Also: the Architecture section's source tree lists three files and `src/` has four -- `artifact_identity.rs` was missing. Checked while here and *not* changed: `cargo oxide bench` appears in this file under a `## Future Commands` heading and is correctly absent from clap, and `CUDA_OXIDE_MATERIALIZE_CUBIN` is real (`MATERIALIZE_CUBIN_ENV` in `reserved-oxide-symbols`) and correctly described as internal. Verified by script: the README's `###` command sections are now exactly the set of non-hidden `Commands` variants (15 and 15, no missing and no ghost), and the source tree matches `src/` exactly. `check-cli-doc-coverage.sh` passes. Signed-off-by: Vyncint Ng <[email protected]>
inspect does not accept --materialize-cubin; it does accept --device-debug and --unchecked-indexing (main.rs Inspect variant).
Collaborator
|
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.
Summary
crates/cargo-oxide/README.mdhas a### cargo oxide <cmd>section for 13 of the 15 user-facing subcommands. Two have none:Both are in
cargo oxide --help, so the CLI advertises them and its own documentation does not explain them.inspectis the one worth having: it is the quick way to see the finished PTX, which is what most people opening this README are trying to do, andpipeline— the verbose whole-pipeline dump — is the only nearby thing documented.This is the gap
scripts/check-cli-doc-coverage.shexists to prevent, one file over. That guard reads the book's command reference; this README is outside its scope, exactly ascheck-crate-inventory.shreads README.md and could not see the book's Crate Map in #970.Both new sections are in the existing house style, with flags taken from
--helprather than from the clap source, so what is documented is what a user sees.materializer-handshakestays undocumented on purpose: it is#[command(name = "__materializer-handshake", hide = true)], and the book guard already accounts for it as "1 hidden one(s) correctly excluded".Also: the Architecture section's source tree lists three files and
src/has four —artifact_identity.rswas missing.Checked and deliberately not changed
cargo oxide benchappears in this file but under a## Future Commandsheading, and is correctly absent from clap.CUDA_OXIDE_MATERIALIZE_CUBINis real (MATERIALIZE_CUBIN_ENVinreserved-oxide-symbols) and correctly described as internal.Testing
Local, no GPU — documentation only.
###command sections are now exactly the set of non-hiddenCommandsvariants (15 and 15, no missing and no ghost)src/exactlycheck-cli-doc-coverage.shpassescargo oxide run <example>— not applicable