Skip to content

refactor(cli): one module per subcommand - #10

Merged
MotherSphere merged 1 commit into
mainfrom
refactor/cli-modules
Aug 4, 2026
Merged

refactor(cli): one module per subcommand#10
MotherSphere merged 1 commit into
mainfrom
refactor/cli-modules

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

Pure moves out of a 2493-line main.rs: one module per subcommand, the launch pipeline and profile staging as their own files. The Nexus command trio deliberately stays in main.rs until PR #7 lands, since #7 rewrites exactly those functions.

Item inventory identical before/after (the nine additions are the test module's contents surfacing to file level), workspace suite green, split binary smoke-run against the real machine.

main.rs was 2493 lines - every subcommand, the whole launch pipeline and the
profile staging in one file. Pure moves, routed by item name:

  main.rs      274   dispatch, usage, and the Nexus commands
  launch.rs    481   eidos play: extender swap, mount, run, capture
  prepare.rs   470   staging the profile into the prefix, and reading it back
  tools.rs     281   eidos tool
  tests.rs     275   the unit tests, file-backed
  prereqs.rs   218   eidos prereqs
  nxm.rs       157   the nxm:// handler
  sort.rs      148   eidos sort (LOOT)
  install.rs   134   eidos install / import
  export.rs    123   eidos export
  games.rs      50   eidos games / init

The Nexus trio (cmd_nexus, nexus_client, nexus_key_path) deliberately stays in
main.rs: PR #7 rewrites exactly those functions, and moving them now would turn
a pending review branch into a wall-to-wall conflict. They move once #7 lands.

Verified as the fuse split was: item inventory identical (the nine additions are
the test module's own fns and its Tmp helper surfacing to file level), workspace
suite green, and the split binary smoke-run against the real machine.
@MotherSphere
MotherSphere merged commit 1a65d2f into main Aug 4, 2026
5 of 6 checks passed
@MotherSphere
MotherSphere deleted the refactor/cli-modules branch August 4, 2026 15:16
@github-actions github-actions Bot mentioned this pull request Aug 4, 2026
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