Skip to content

WIP refactor: clean up internal/rhsm#358

Draft
jlocash wants to merge 1 commit intomainfrom
jlocash/refactor-rhsm
Draft

WIP refactor: clean up internal/rhsm#358
jlocash wants to merge 1 commit intomainfrom
jlocash/refactor-rhsm

Conversation

@jlocash
Copy link
Contributor

@jlocash jlocash commented Feb 18, 2026

I originally intended to include these changes with #342, but did not want to include any refactors in that PR.

I felt the separation of concerns between cmd/rhc and internal/rhsm could be improved. I believe cmd/rhc should include all code relating to user-interactions (reading input, printing etc) and registration flow, and internal/rhsm should provide the APIs to make it happen.

Included in this PR are the following changes:

  • removed all dbus calls from cmd/
  • removed all urfave/cli usage from internal/rhsm
  • implemented rhsm.RegisterServer for wrapping the private D-Bus connection
  • moved rhsm.RegisterRHSM function to cmd/rhc package

- removed all dbus calls from cmd/
- removed all urfave/cli usage from internal/rhsm
- implemented rhsm.RegisterServer for wrapping the private D-Bus connection and registration methods
- moved calling code to cmd/rhc

Signed-off-by: Joshua Locash <[email protected]>
Assisted-by: Claude Code
@jlocash jlocash force-pushed the jlocash/refactor-rhsm branch from 2843b69 to 3b0ff53 Compare February 18, 2026 14:07
@jlocash
Copy link
Contributor Author

jlocash commented Feb 18, 2026

Would like to wait for #346 to be merged before this PR as there will be conflicts

@jirihnidek
Copy link
Contributor

@jlocash please wait with this effort till the #346 is merged. There will be lot of changes.

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