Conversation
Owner
tis24dev
commented
Jan 16, 2026
- Add detailed debug logging to backup source selection
- Refactor interactive input handling and prompt APIs
- Refactor support mode logic into internal/support package
- Improved test coverage for restore/decrypt (bundle + raw, deterministic rclone)
Enhanced the backup source selection and scanning logic with granular debug logging for better traceability. Refactored functions to accept a logger parameter, updated TUI workflows to propagate logging, and improved error handling and reporting throughout the backup discovery and extraction processes. Adjusted tests to match new function signatures.
Moves interactive input logic (line/password reading, error mapping) to a new internal/input package, replacing duplicated code in CLI and orchestrator modules. Refactors prompt and prompter APIs to accept context for cancellation, updates all usages and tests, and improves error normalization for user-aborted input. Adds process-wide abort context support for TUI. This change improves consistency, testability, and graceful shutdown handling across all interactive workflows.
Moved support mode interactive prompts and email logic from main.go to a new internal/support package for better modularity and maintainability. Updated CLI help and documentation to clarify that --support is available for both standard backup and --restore. Adjusted main.go to use the new support package and improved handling of support metadata and stats during restore workflows.
…ic rclone) Added and updated tests to validate the new “always scan bundle and non-bundle” behavior (including rclone), made candidate ordering deterministic, and removed/adjusted legacy assumptions about cloud pre-scan hiding and mandatory raw checksum sidecars.
Add SimulationScreen-driven TUI tests and a stub hook for RunRestoreWorkflow to prevent coverage regressions and raise overall orchestrator coverage while keeping the suite stable and fast.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Add unit tests for internal/input and expand encryption.go coverage by testing exported helpers, abort/error mapping, recipient file IO (including failure paths), and key wizard/recipient preparation branches.
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.