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`.