mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-03-12 17:39:01 +00:00
Updated Migration from Devine (markdown)
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user