diff --git a/tools/.sh b/tools/.sh deleted file mode 100644 index 439dcbf..0000000 --- a/tools/.sh +++ /dev/null @@ -1,3 +0,0 @@ -format code - -dart format --output=none --set-exit-if-changed . \ No newline at end of file diff --git a/tools/switch_services.sh b/tools/switch_services.sh new file mode 100644 index 0000000..1aeee55 --- /dev/null +++ b/tools/switch_services.sh @@ -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 \ No newline at end of file