pub-studio icon indicating copy to clipboard operation
pub-studio copied to clipboard

Can we run multiple commands at once

Open 3kdeveloper opened this issue 1 year ago • 1 comments

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": "...", }

3kdeveloper avatar Jul 19 '24 16:07 3kdeveloper

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.

Mastersam07 avatar Aug 07 '24 22:08 Mastersam07