Move the detection and backup logic for automation to internal/core/automation.
- Create directory
internal/core/automation.
- Move
automation/detect.go → internal/core/automation/scanner.go.
-- Update to use domain.AutomationData.
- Move
automation/backup.go → internal/core/automation/backup.go.
-- Keep the BackupAutomation(data, *tar.Writer) signature for now. It works well as a "Strategy".
- Refactor: Extract
GenerateRestorationCommands into internal/core/automation/restore.go.
--This keeps "Backup logic" separate from "Restore logic".
Move the detection and backup logic for automation to
internal/core/automation.internal/core/automation.automation/detect.go→internal/core/automation/scanner.go.-- Update to use
domain.AutomationData.automation/backup.go→internal/core/automation/backup.go.-- Keep the
BackupAutomation(data, *tar.Writer)signature for now. It works well as a "Strategy".GenerateRestorationCommandsintointernal/core/automation/restore.go.--This keeps "Backup logic" separate from "Restore logic".