Skip to content

feat: Generate manpages based on clap command docs#2014

Merged
ianderson-nvidia merged 1 commit into
NVIDIA:mainfrom
ianderson-nvidia:admin_cli_updates_1
Jun 1, 2026
Merged

feat: Generate manpages based on clap command docs#2014
ianderson-nvidia merged 1 commit into
NVIDIA:mainfrom
ianderson-nvidia:admin_cli_updates_1

Conversation

@ianderson-nvidia
Copy link
Copy Markdown
Contributor

@ianderson-nvidia ianderson-nvidia commented May 29, 2026

  • Generate man pages for each command and subcommand (similar to git man pages) e.g. To view the man page of the command carbide-admin-cli vpc show man carbide-admin-cli-vpc-show. To view the man page of the command carbide-admin-cli vpc set-virtualizer man carbide-admin-cli-vpc-set-virtualizer Uses can start with simply man carbide-admin-cli which will list all commands available
  • man pages for each command and subcommand are generated based on the help text of
    clap. after_long_help is treated as "EXTRA" in man
    pages, which is where we include example usages of CLI commands.
    e.g. (example from viewing the man page of
    carbide-admin-cli-vpc-show)
 EXTRA
    List all VPCs:
        $ carbide-admin-cli vpc show

    Show details for one VPC
        $ carbide-admin-cli vpc show 12345678-1234-5678-90ab-cdef01234567

    Filter by tenant org
        $ carbide-admin-cli vpc show --tenant-org-id fds34511233a

    Filter by label:
        $ carbide-admin-cli vpc show --label-key env --label-value prod

Description

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

Related to #2011

@ianderson-nvidia ianderson-nvidia requested a review from a team as a code owner May 29, 2026 22:15
@ianderson-nvidia ianderson-nvidia marked this pull request as draft May 29, 2026 22:52
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 29, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ianderson-nvidia ianderson-nvidia force-pushed the admin_cli_updates_1 branch 2 times, most recently from 8435646 to c92ec8b Compare May 29, 2026 23:21
  * Generate man pages for each command and subcommand (similar to
    git man pages)
    e.g. To view the man page of the command `carbide-admin-cli vpc show`
    `man carbide-admin-cli-vpc-show`.  To view the man page of the command
    `carbide-admin-cli vpc set-virtualizer` man carbide-admin-cli-vpc-set-virtualizer
    Uses can start with simply `man carbide-admin-cli` which will list
    all commands available
  * man pages for each command and subcommand are generated based on the `help` text of
    clap.   `after_long_help` is treated as "EXTRA" in man
    pages, which is where we include example usages of CLI commands.
    e.g. (example from viewing the man page of
    `carbide-admin-cli-vpc-show`)
    ```
  EXTRA
     List all VPCs:
         $ carbide-admin-cli vpc show

     Show details for one VPC
         $ carbide-admin-cli vpc show 12345678-1234-5678-90ab-cdef01234567

     Filter by tenant org
         $ carbide-admin-cli vpc show --tenant-org-id fds34511233a

     Filter by label:
         $ carbide-admin-cli vpc show --label-key env --label-value prod
    ```
@ianderson-nvidia ianderson-nvidia marked this pull request as ready for review June 1, 2026 16:14
@ianderson-nvidia ianderson-nvidia merged commit 239607a into NVIDIA:main Jun 1, 2026
53 checks passed
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.

2 participants