delete(tools): Добавить скрипт для переключения сервисов

This commit is contained in:
PetrovY
2025-06-20 16:54:05 +03:00
parent 98630f744f
commit 24bf652319
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
format code
dart format --output=none --set-exit-if-changed .

10
tools/switch_services.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
### Скрипт для переключения сервисов для CI/CD
TYPE=$1
if [ -z "$TYPE" ]; then
echo "Error: TYPE is not set. Please provide a value."
exit 1
fi
yq -i '.dependencies.app_services.path = "app_services/'"$TYPE"'/app_services"' pubspec.yaml