Skip to content

Refactor: split main.go into focused CLI files#11

Merged
ykus4 merged 1 commit into
mainfrom
refactor/split-main
May 7, 2026
Merged

Refactor: split main.go into focused CLI files#11
ykus4 merged 1 commit into
mainfrom
refactor/split-main

Conversation

@ykus4
Copy link
Copy Markdown
Owner

@ykus4 ykus4 commented May 7, 2026

The monolithic 806-line main.go is now split into:

  • cli_helpers.go — prompt utilities and guard functions
  • cli_device.go — device selection/Wi-Fi handlers
  • cli_process.go — attach/detach/process handlers
  • cli_search.go — value type, search, filter handlers
  • cli_memory.go — modify, watch, pointer, maps, bookmark handlers
  • main.go — entry point, REPL loop, printMenu

Updated README and docs/architecture.md, docs/development.md to reflect the new file layout.

The monolithic 806-line main.go is now split into:
- cli_helpers.go   — prompt utilities and guard functions
- cli_device.go    — device selection/Wi-Fi handlers
- cli_process.go   — attach/detach/process handlers
- cli_search.go    — value type, search, filter handlers
- cli_memory.go    — modify, watch, pointer, maps, bookmark handlers
- main.go          — entry point, REPL loop, printMenu

Updated README and docs/architecture.md, docs/development.md to reflect
the new file layout.
@ykus4 ykus4 merged commit 00fba7c into main May 7, 2026
1 of 2 checks passed
@ykus4 ykus4 deleted the refactor/split-main branch May 7, 2026 13:06
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