From 47c2ef8fdafee16e4eeddd9a1e5141520d94a544 Mon Sep 17 00:00:00 2001 From: Sp5rky Date: Sun, 20 Jul 2025 10:07:51 -0600 Subject: [PATCH] Updated Migration from Devine (markdown) --- Migration-from-Devine.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Migration-from-Devine.md b/Migration-from-Devine.md index 38aa6df..69fa616 100644 --- a/Migration-from-Devine.md +++ b/Migration-from-Devine.md @@ -2,9 +2,23 @@ To migrate from Devine to Unshackle in your service modules, you can use the following one-liner to update all occurrences of "from devine" to "from unshackle" in files inside the services directory: +Unix ```bash find unshackle/services/ -type f -name "*.py" -exec sed -i 's/from devine/from unshackle/g' {} + ``` +Windows +```powershell +Get-ChildItem "unshackle/services" -Recurse -Filter *.py | + ForEach-Object { + (Get-Content -Raw $_) -replace 'from devine', 'from unshackle' | + Set-Content $_ + } +``` +MacOS +```bash +find unshackle/services -type f -name '*.py' \ + -exec sed -i '' 's/from devine/from unshackle/g' {} + +``` This command will recursively search for Python files in services and replace all instances of `from devine` with `from unshackle`.