Groovy web console

subscribe to the feed Subscribe
to this
site

groovy still sucks

Published 1 month ago by M with tags M
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def generateDestinationsParameter(destinations) {
return destinations.collect {"-destination '" + it + "'"}.join(' ')
}

all_dest = ['platform=iOS Simulator,name=iPhone 11,OS=latest', 'platform=iOS Simulator,name=iPhone X,OS=12.4']


println(generateDestinationsParameter(all_dest))