SS Auto dir

·

1 min read

asasas
chmod +x create_structure.sh

./create_structure.sh
#!/bin/bash

while true; do
    echo "-----------------------"
    echo "Flutter Menu"
    echo "-----------------------"
    echo "1. Flutter build"
    echo "2. Flutter run"
    echo "3. Flutter test"
    echo "4. Flutter clean"
    echo "5. Flutter doctor"
    echo "6. Pub get"
    echo "7. List emulators"
    echo "8. Launch on emulator"
    echo "9. Exit"
    echo "-----------------------"

    read -p "Enter your choice (1-9): " choice

    case $choice in
        1)
            flutter build
            ;;
        2)
            flutter run
            ;;
        3)
            flutter test
            ;;
        4)
            flutter clean
            ;;
        5)
            flutter doctor
            ;;
        6)
            flutter pub get
            ;;
        7)
            flutter emulators
            ;;
        8)
            read -p "Enter emulator ID: " emulator_id
            flutter emulators --launch "$emulator_id"
            ;;
        9)
            echo "Exiting..."
            exit 0
            ;;
        *)
            echo "Invalid choice. Please enter a number between 1 and 9."
            ;;
    esac

    echo "-----------------------"
done