Skip to content

Conversation

@D3vanshC
Copy link
Contributor

What this PR does

Moves automation detection, backup, and restore logic into the new internal/core/automation layer to better align with the project’s layered architecture and clearly separate responsibilities.

Changes

  • Created new package internal/core/automation
  • Moved automation detection logic:
    • automation/detect.gointernal/core/automation/scanner.go
    • Updated implementation to build and use domain.AutomationData
  • Moved automation backup logic:
    • automation/backup.gointernal/core/automation/backup.go
    • Kept the BackupAutomation(data, *tar.Writer) signature unchanged, preserving its strategy-style interface
  • Refactored restore-related logic:
    • Extracted GenerateRestorationCommands into internal/core/automation/restore.go
    • Clearly separated backup logic from restore logic
  • Updated package names and imports to reflect the new core structure

Closes #14

@D3vanshC D3vanshC requested a review from baync180705 December 20, 2025 19:55
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.

Migrate Automation Logic to Core

2 participants