doctl icon indicating copy to clipboard operation
doctl copied to clipboard

Acting on tagged droplets

Open tfogo opened this issue 7 years ago • 2 comments

Can we add the ability to run droplet actions on droplets by tags? So the usage would be:

$ doctl compute droplet-action <droplet-action> (<droplet-id> | --tag <tag>)

In the case both a tag flag and a droplet ID arg are provided, the CLI would throw an error asking for only one option.

If this usage looks okay I'm happy to submit a PR to implement it.

tfogo avatar May 16 '18 17:05 tfogo

I've added needed calls for this in #202 to doctl/do, but never found the time to actually implement commands for this. I believe this could be very helpful, but it's important to find the right usage pattern.

In my opinion, that one you mentioned (<droplet-id> | --tag <droplet-tag>) should be good enough, but I would love to hear about this from maintainers.

xmudrii avatar May 16 '18 18:05 xmudrii

Thanks @xmudrii! @mauricio do you have any thoughts on the usage here?

tfogo avatar May 23 '18 07:05 tfogo