massdriver-cloud / massdriver-cli

Deprecated. See https://github.com/massdriver-cloud/mass
https://massdriver.cloud
Apache License 2.0
3 stars 2 forks source link

Add chained arguments to commands #146

Open mclacore opened 1 year ago

mclacore commented 1 year ago

For scripting or easier testing of running specific mass commands, it would be nice to be able to chain arguments together. I put together some examples of what that could look like:

mass app new: mass app new -n my-new-app -d "This app is cool" -t azure-app-service -c "massdriver/azure-virtual-network, massdriver/azure-service-principal, massdriver/postgresql-authentication", -x "vnet, sp, psql", -o "./cool-app-idea"

args:

mass bundle new: mass bundle new -n azure-load-balancer -a private -d "I handle big loads" -o "./loading" -c "massdriver/azure-service-principal, massdriver/azure-virtual-network" -x "sp, vnet"

args:

The logic of this would be that for every connection listed, in order, would be indexed and match the list of connection names, in the same order.