Export installed HomeBrew software and import for installation on other mac#6
Merged
darthsharp merged 5 commits intomainfrom Apr 24, 2026
Merged
Export installed HomeBrew software and import for installation on other mac#6darthsharp merged 5 commits intomainfrom
darthsharp merged 5 commits intomainfrom
Conversation
- Implemented `BrewExportCommand` and `BrewImportCommand` for exporting and importing Homebrew data via CLI. - Introduced `IBrewExporter` and `IBrewImporter` interfaces with corresponding implementations. - Created models for managing Homebrew export data: `BrewExportModel`, `BrewExportCaskModel`, and `BrewExportFormulaModel`. - Added exception handling: `BrewImportFailedException` and `BrewInstallFailedException`. - Registered new services (`IBrewExporter`, `IBrewImporter`, `IBrewInstaller`) in DI container. - Updated project organization to support enhanced Homebrew workflows.
- Introduced `BrewImportProgress` model for reporting import steps and states. - Updated `IBrewImporter` interface and implementations to support progress callbacks. - Enhanced `ImportAsync` and `ImportFromFileAsync` methods with detailed progress reporting. - Integrated progress updates into `BrewImportCommand` console output.
…rew cask attributes - Implemented `SingleOrArrayConverter` to handle deserialization and serialization of JSON values that can be either a single string or an array of strings. - Updated `BrewZapModel` and `BrewUninstallModel` to use the new converter for `trash`, `rmdir`, `pkgutil`, `delete`, and `launchctl` attributes. - Added comprehensive unit tests for `SingleOrArrayConverter` covering various scenarios. - Updated `.gitignore` to include `.tokensave`.
- Updated `BrewExportOptions` with `IncludeDependencies` flag. - Enhanced `IBrewExporter` and `BrewExporter` to filter formulae based on dependency state. - Added `IsInstalledAsDependency` extension method for formulae. - Extended unit tests to cover dependency filtering in export scenarios. - Updated `BrewExportCommand` to pass dependency flag to `BrewExporter`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.