Skip to content

refactor(cli/install): split entry into submodules#155

Merged
indaco merged 1 commit intomainfrom
refactor/install-split-submodules
Apr 23, 2026
Merged

refactor(cli/install): split entry into submodules#155
indaco merged 1 commit intomainfrom
refactor/install-split-submodules

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 23, 2026

Description

Split src/cli/install.zig into six submodules under src/cli/install/ (args, ghcr_url, record, download, post_install, local) plus an entry orchestrator. Every function body moved verbatim; install.zig now re-exports the public API so external callers (core/bottle, core/cask, update/verify, cli/bundle, cli/restore, main, lib) and all existing tests keep working unchanged.

Related Issue

  • None

Notes for Reviewers

  • None

Move argv, GHCR URL, DB record, download, post_install, and local
formula helpers into src/cli/install/ submodules. install.zig becomes
an 887-LOC orchestrator that re-exports the public API so external
callers keep working unchanged. Binary size unchanged; drops unused
install_mod import from doctor.zig.
@indaco indaco changed the title refactor(cli/install): split 2281-LOC entry into submodules refactor(cli/install): split entry into submodules Apr 23, 2026
@indaco indaco merged commit 0b265a8 into main Apr 23, 2026
3 checks passed
@indaco indaco deleted the refactor/install-split-submodules branch April 23, 2026 08:45
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