pub-studio
pub-studio copied to clipboard
Can we run multiple commands at once
Like if i have these commands flutter pub cache clean y flutter clean flutter pub get
Can I run them all at once ?
"pubStudio.customCommands": { "clean project": "...", }
You could leverage the makefile support.
# Makefile
# Define a target to pub cache clean
pubclean:
flutter pub cache clean
# Define a target to clean the Flutter project
clean:
flutter clean
# Define a target to get Flutter packages
get:
flutter pub get
# Define a target to clean and get packages in one step
all: pubclean clean get
The above would add pubclean, clean, get and all to the scripts section of pubstudio, with all running the pubclean, clean and get command.