Skip to content

Conversation

jeckersb
Copy link
Collaborator

Creates a new dedicated crate for kernel command line parsing functionality,
moving it out of bootc-lib for better separation of concerns and modularity.

Changes:

  • Create new bootc-kernel-cmdline crate under crates/kernel_cmdline/
  • Move kernel_cmdline.rs from bootc-lib to the new crate as lib.rs
  • Add bootc-kernel-cmdline dependency to bootc-lib
  • Update imports in bootc-lib to use bootc_kernel_cmdline:: namespace
  • Add missing Debug derive and documentation to fix lints

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com
Signed-off-by: John Eckersberg jeckersb@redhat.com

Creates a new dedicated crate for kernel command line parsing functionality,
moving it out of bootc-lib for better separation of concerns and modularity.

Changes:
- Create new bootc-kernel-cmdline crate under crates/kernel_cmdline/
- Move kernel_cmdline.rs from bootc-lib to the new crate as lib.rs
- Add bootc-kernel-cmdline dependency to bootc-lib
- Update imports in bootc-lib to use bootc_kernel_cmdline:: namespace
- Add missing Debug derive and documentation to fix lints

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: John Eckersberg <jeckersb@redhat.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively refactors the kernel command line parsing logic into a new dedicated crate, bootc-kernel-cmdline, which improves modularity and separation of concerns. The changes are well-executed, with visibility and imports updated correctly. I've found one issue regarding inconsistent equality comparison for ParameterStr, which should be addressed to ensure predictable behavior.

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Nice!

@cgwalters cgwalters merged commit a48dad7 into bootc-dev:main Aug 27, 2025
26 of 28 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants