Skip to content

Refactor CLI into nested structure#717

Open
sjmonson wants to merge 1 commit intofeat/arg_parserfrom
cleanup/cli_nested
Open

Refactor CLI into nested structure#717
sjmonson wants to merge 1 commit intofeat/arg_parserfrom
cleanup/cli_nested

Conversation

@sjmonson
Copy link
Copy Markdown
Collaborator

@sjmonson sjmonson commented May 4, 2026

Summary

Migrates CLI code out of __main__.py and into its own submodule.

Details

The PR is purely refactoring. Making this change now will make the incoming CLI refactor a little cleaner to review.

Test Plan

Run any existing CLI commands to confirm functionality.


  • "I certify that all code in this PR is my own, except as noted below."

Use of AI

  • Includes AI-assisted code completion
  • Includes code generated by an AI application
  • Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes ## WRITTEN BY AI ##)

Signed-off-by: Samuel Monson <smonson@redhat.com>
Copy link
Copy Markdown
Collaborator

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

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

It's hard to review this sort of refactoring without simply trusting that it's mostly a cut-and-paste; but that appears to be essentially the case, (and so I've avoided making some random commentary along the way that would equally apply to the current code) ... so I've really just got one minor comment comment...

Comment thread src/guidellm/__main__.py
status="success",
)
server.run()
"""Entry points for guidellm."""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

OK, I would have stuck with the first line of the old comment: "GuideLLM command-line interface entry point".

@sjmonson sjmonson force-pushed the feat/arg_parser branch from 0889559 to 5402c02 Compare May 5, 2026 18:36
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