Skip to content

docs(cli): add the boot-interface command reference pages#3410

Open
chet wants to merge 1 commit into
NVIDIA:mainfrom
chet:gh-issue-3335-02
Open

docs(cli): add the boot-interface command reference pages#3410
chet wants to merge 1 commit into
NVIDIA:mainfrom
chet:gh-issue-3335-02

Conversation

@chet

@chet chet commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The generated CLI reference pages for the new boot-interface command family (show, candidates, set) from #3341, plus the hardware-index row -- split out so the code lands independently of the docs review. Straight generate-cli-docs output, no hand-authored content.

This supports #3335

Adds the generated `docs/manuals/nico-admin-cli` pages for the new `boot-interface` command family -- `show`, `candidates`, and `set` -- plus its row in the hardware index. The pages are straight `generate-cli-docs` output for the commands NVIDIA#3341 adds; they ride separately so the code PR does not gate on a docs review.

This supports NVIDIA#3335

Signed-off-by: Chet Nichols III <chetn@nvidia.com>
@chet chet requested a review from polarweasel as a code owner July 12, 2026 05:19
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Summary by CodeRabbit

  • Documentation
    • Added comprehensive CLI documentation for the boot-interface command, including purpose, options, sorting, and usage guidance.
    • Documented the show, candidates, and set subcommands with their arguments, output/behavior notes, and examples.
    • Added cross-references to related hardware and CLI documentation, including linking from the hardware command reference to boot-interface.

Walkthrough

Adds documentation for the nico-admin-cli boot-interface command and its show, candidates, and set subcommands, then links the command from the hardware CLI reference.

Changes

Boot Interface CLI Documentation

Layer / File(s) Summary
Boot-interface command references
docs/manuals/nico-admin-cli/commands/boot-interface/*
Documents command usage, options, arguments, behavior, examples, and related links for the boot-interface command and its subcommands.
Hardware command index integration
docs/manuals/nico-admin-cli/hardware.md
Adds the boot-interface command and documentation link to the hardware CLI reference table.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the addition of boot-interface command reference pages.
Description check ✅ Passed The description is directly related to the new generated boot-interface CLI docs and hardware index row.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@chet

chet commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full_review, thanks!

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

@chet, you're welcome! I'll redo the full review of the PR now.

(=^・ω・^=)

✅ Action performed

Full review finished.

@github-actions

Copy link
Copy Markdown

🔍 Container Scan Summary

No Grype artifacts were found to aggregate.

@github-actions

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md`:
- Around line 23-25: Correct the repeated measured-boot description in the CLI
help source or documentation template from “This used by measured boot” to “This
is used by measured boot,” then rerun generate-cli-docs so all generated pages
receive the grammar fix.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1d66eb5c-6068-4c0d-b06d-78708cec3759

📥 Commits

Reviewing files that changed from the base of the PR and between 6a5316b and e1cbbcd.

📒 Files selected for processing (5)
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-candidates.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-set.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-show.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md
  • docs/manuals/nico-admin-cli/hardware.md

Comment on lines +23 to +25
This used by measured boot, where basic output contains just what you
probably care about, and "extended" output also dumps out all the
internal UUIDs that are used to associate instances.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the generated grammar before publishing.

Change “This used by measured boot” to “This is used by measured boot.” Since the text is repeated across the generated pages, fix the CLI help source/template and rerun generate-cli-docs rather than patching only one output file.

As per path instructions, Markdown documentation must be reviewed for spelling and grammar.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md` around
lines 23 - 25, Correct the repeated measured-boot description in the CLI help
source or documentation template from “This used by measured boot” to “This is
used by measured boot,” then rerun generate-cli-docs so all generated pages
receive the grammar fix.

Source: Path instructions

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-candidates.md`:
- Around line 12-13: Update the nico-admin-cli boot-interface candidates
synopsis to show the required <SORT_BY> argument alongside --sort-by, matching
the option definition below; regenerate the documentation page without changing
other command options.

In `@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md`:
- Around line 11-12: Update the boot-interface synopsis generator or help-source
definition so the --sort-by option is rendered with its required <SORT_BY>
value, then regenerate all boot-interface command pages to apply the corrected
synopsis consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3e099846-d5ea-45f1-b845-d5b0223ce97a

📥 Commits

Reviewing files that changed from the base of the PR and between 6a5316b and e1cbbcd.

📒 Files selected for processing (5)
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-candidates.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-set.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-show.md
  • docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md
  • docs/manuals/nico-admin-cli/hardware.md

Comment on lines +12 to +13
**nico-admin-cli boot-interface candidates** \[**--extended**\]
\[**--sort-by**\] \[**-h**\|**--help**\] \<*MACHINE*\>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

file='docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-candidates.md'

printf '\n== File (numbered excerpt) ==\n'
cat -n "$file" | sed -n '1,120p'

printf '\n== Related boot-interface docs (filenames) ==\n'
fd -a 'boot-interface*.md' docs/manuals/nico-admin-cli/commands -t f

printf '\n== Similar synopsis patterns in sibling docs ==\n'
for f in docs/manuals/nico-admin-cli/commands/boot-interface/*.md; do
  printf '\n-- %s --\n' "$f"
  sed -n '1,40p' "$f"
done

Repository: NVIDIA/infra-controller

Length of output: 7774


Include <SORT_BY> in the synopsis. The usage line currently shows [--sort-by], but the option is defined as --sort-by <SORT_BY> below. Regenerate the page so the synopsis matches the accepted invocation.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-candidates.md`
around lines 12 - 13, Update the nico-admin-cli boot-interface candidates
synopsis to show the required <SORT_BY> argument alongside --sort-by, matching
the option definition below; regenerate the documentation page without changing
other command options.

Source: Path instructions

Comment on lines +11 to +12
**nico-admin-cli boot-interface** \[**--extended**\] \[**--sort-by**\]
\[**-h**\|**--help**\] \<*subcommands*\>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the target markdown and nearby generated command docs.
printf '\n## Target file\n'
cat -n docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md | sed -n '1,120p'

printf '\n## Related command docs\n'
for f in \
  docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md \
  docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-extended.md \
  docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-sort-by.md \
  docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface-help.md
do
  [ -f "$f" ] || continue
  printf '\n### %s\n' "$f"
  grep -nE 'sort-by|extended|Synopsis|Usage|`--sort-by`|<SORT_BY>' "$f" || true
done

printf '\n## Search for help source definitions\n'
rg -n --hidden --glob '!target' --glob '!**/node_modules/**' 'boot-interface|sort-by|SORT_BY|extended' \
  docs crates .github book . 2>/dev/null | sed -n '1,220p'

Repository: NVIDIA/infra-controller

Length of output: 30997


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Focus on the exact file and nearby command docs.
cat -n docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md | sed -n '1,120p'

printf '\n---\n'
find docs/manuals/nico-admin-cli/commands/boot-interface -maxdepth 1 -type f | sort | xargs -r -I{} sh -c 'printf "\n### %s\n" "{}"; grep -nE "sort-by|extended|<SORT_BY>|Synopsis|Usage|--help" "{}" || true'

Repository: NVIDIA/infra-controller

Length of output: 3275


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the exact markdown section around the synopsis and option table.
sed -n '1,80p' docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md

Repository: NVIDIA/infra-controller

Length of output: 1495


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the target markdown and discover related generated pages in the same directory.
find docs/manuals/nico-admin-cli/commands/boot-interface -maxdepth 1 -type f | sort

printf '\n--- target ---\n'
sed -n '1,120p' docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md

Repository: NVIDIA/infra-controller

Length of output: 1811


Show --sort-by <SORT_BY> in the synopsis. docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md:11-12 omits the required value even though the option accepts one. The same synopsis pattern appears on the other boot-interface pages, so fix the generator/help source and regenerate the set.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/manuals/nico-admin-cli/commands/boot-interface/boot-interface.md` around
lines 11 - 12, Update the boot-interface synopsis generator or help-source
definition so the --sort-by option is rendered with its required <SORT_BY>
value, then regenerate all boot-interface command pages to apply the corrected
synopsis consistently.

Source: Path instructions

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.

1 participant